summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeongmo Yang <jm80.yang@samsung.com>2015-11-09 18:27:58 +0900
committerJeongmo Yang <jm80.yang@samsung.com>2015-11-09 18:27:58 +0900
commit65be9928105488981bdd520bc0d9526450d739d0 (patch)
tree8fc0d67773c61a6b0b26333c3d07311362f2085e
parent06bb5f3f2ac87533d4ff4b3676fa87d8fa33ccd7 (diff)
downloadcamera-65be9928105488981bdd520bc0d9526450d739d0.tar.gz
camera-65be9928105488981bdd520bc0d9526450d739d0.tar.bz2
camera-65be9928105488981bdd520bc0d9526450d739d0.zip
1. Fix build error on wearable profile - without WAYLAND feature Change-Id: I5110ba080fb99f7e44e957041d3c1607c99b3a53 Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
-rw-r--r--packaging/capi-media-camera.spec2
-rwxr-xr-xsrc/camera.c7
2 files changed, 7 insertions, 2 deletions
diff --git a/packaging/capi-media-camera.spec b/packaging/capi-media-camera.spec
index 040200b..4a7a777 100644
--- a/packaging/capi-media-camera.spec
+++ b/packaging/capi-media-camera.spec
@@ -3,7 +3,7 @@
Name: capi-media-camera
Summary: A Camera API
-Version: 0.2.19
+Version: 0.2.20
Release: 0
Group: Multimedia/API
License: Apache-2.0
diff --git a/src/camera.c b/src/camera.c
index bebeb13..b3a5e3a 100755
--- a/src/camera.c
+++ b/src/camera.c
@@ -1231,11 +1231,12 @@ ErrorExit:
}
_camera_remove_idle_event_all(pc->cb_info);
_client_callback_destroy(pc->cb_info);
-
+#ifdef HAVE_WAYLAND
if (pc->wl_info) {
g_free(pc->wl_info);
pc->wl_info = NULL;
}
+#endif /* HAVE_WAYLAND */
g_free(pc);
pc = NULL;
@@ -1818,12 +1819,14 @@ int camera_set_display(camera_h camera, camera_display_type_e type, camera_displ
}
}
+#ifdef HAVE_WAYLAND
if (pc->wl_info) {
g_free(pc->wl_info);
pc->wl_info = NULL;
}
pc->wl_info = wl_info;
+#endif /* HAVE_WAYLAND */
return CAMERA_ERROR_NONE;;
} else {
@@ -1832,10 +1835,12 @@ int camera_set_display(camera_h camera, camera_display_type_e type, camera_displ
}
_SET_DISPLAY_ERROR:
+#ifdef HAVE_WAYLAND
if (wl_info) {
g_free(wl_info);
wl_info = NULL;
}
+#endif /* HAVE_WAYLAND */
return __convert_camera_error_code(__func__, ret);
}