summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeongmo Yang <jm80.yang@samsung.com>2016-05-10 19:57:47 +0900
committerJeongmo Yang <jm80.yang@samsung.com>2016-05-10 19:57:47 +0900
commitd3e1824ffa6cfea863185321ffa23552d508a9fa (patch)
treec094ebe7689b5cd3462a3dfe7f2324e617228c8d
parent1c77e1356c0c0705353ba740b9983288b430ee2f (diff)
downloadcamera-d3e1824ffa6cfea863185321ffa23552d508a9fa.tar.gz
camera-d3e1824ffa6cfea863185321ffa23552d508a9fa.tar.bz2
camera-d3e1824ffa6cfea863185321ffa23552d508a9fa.zip
Change-Id: Ia46f8fabf62b7086454e8fdccc7ca5d5f589e386 Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
-rw-r--r--packaging/capi-media-camera.spec2
-rw-r--r--src/camera.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/packaging/capi-media-camera.spec b/packaging/capi-media-camera.spec
index 7278f67..06aee50 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.55
+Version: 0.2.56
Release: 0
Group: Multimedia/API
License: Apache-2.0
diff --git a/src/camera.c b/src/camera.c
index ed7b9b8..da4ea12 100644
--- a/src/camera.c
+++ b/src/camera.c
@@ -937,6 +937,7 @@ static void _client_user_callback(camera_cb_info_s *cb_info, char *recv_msg, mus
/* import tbm bo and get virtual address */
if (!_import_tbm_key(cb_info->bufmgr, tbm_key, &bo, &bo_handle)) {
LOGE("failed to import key %d", tbm_key);
+ _release_imported_bo(&data_bo);
muse_camera_msg_send1_no_return(MUSE_CAMERA_API_RETURN_BUFFER,
cb_info->fd, cb_info, INT, tbm_key);
break;
@@ -1029,6 +1030,7 @@ static void _client_user_callback(camera_cb_info_s *cb_info, char *recv_msg, mus
_release_imported_bo(&buffer_bo[i]);
/* unmap and unref tbm bo */
+ _release_imported_bo(&data_bo);
_release_imported_bo(&bo);
/* return buffer */