diff options
author | Jeongmo Yang <jm80.yang@samsung.com> | 2016-05-10 19:57:47 +0900 |
---|---|---|
committer | Jeongmo Yang <jm80.yang@samsung.com> | 2016-05-10 19:57:47 +0900 |
commit | d3e1824ffa6cfea863185321ffa23552d508a9fa (patch) | |
tree | c094ebe7689b5cd3462a3dfe7f2324e617228c8d | |
parent | 1c77e1356c0c0705353ba740b9983288b430ee2f (diff) | |
download | camera-d3e1824ffa6cfea863185321ffa23552d508a9fa.tar.gz camera-d3e1824ffa6cfea863185321ffa23552d508a9fa.tar.bz2 camera-d3e1824ffa6cfea863185321ffa23552d508a9fa.zip |
[Release version 0.2.56] Fix memory leak - imported TBM bo(buffer object)submit/tizen/20160512.051443accepted/tizen/wearable/20160513.004049accepted/tizen/tv/20160513.004122accepted/tizen/mobile/20160513.004022accepted/tizen/ivi/20160513.004144accepted/tizen/common/20160513.123220
Change-Id: Ia46f8fabf62b7086454e8fdccc7ca5d5f589e386
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
-rw-r--r-- | packaging/capi-media-camera.spec | 2 | ||||
-rw-r--r-- | src/camera.c | 2 |
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 */ |