summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhj kim <backto.kim@samsung.com>2018-04-25 14:20:32 +0900
committerhj kim <backto.kim@samsung.com>2018-04-25 14:20:32 +0900
commit9330a2c9b0bc0729165b9524f46bc65cf2b9aef3 (patch)
treeece778e9cedf464d95b1417a4b99f61e03fbadb3
parent55066d4beb2096889cca3f921c94101dad6a9352 (diff)
downloadmedia-controller-9330a2c9b0bc0729165b9524f46bc65cf2b9aef3.tar.gz
media-controller-9330a2c9b0bc0729165b9524f46bc65cf2b9aef3.tar.bz2
media-controller-9330a2c9b0bc0729165b9524f46bc65cf2b9aef3.zip
Change-Id: Ie7856f1807c61ac9d21bec485d13e1281066fba5
-rwxr-xr-xpackaging/capi-media-controller.spec2
-rwxr-xr-xsrc/media_controller_db.c6
2 files changed, 6 insertions, 2 deletions
diff --git a/packaging/capi-media-controller.spec b/packaging/capi-media-controller.spec
index fac0a65..fe48134 100755
--- a/packaging/capi-media-controller.spec
+++ b/packaging/capi-media-controller.spec
@@ -1,6 +1,6 @@
Name: capi-media-controller
Summary: A media controller library in Tizen Native API
-Version: 0.1.54
+Version: 0.1.55
Release: 1
Group: Multimedia/API
License: Apache-2.0
diff --git a/src/media_controller_db.c b/src/media_controller_db.c
index f4e47ed..c009232 100755
--- a/src/media_controller_db.c
+++ b/src/media_controller_db.c
@@ -425,7 +425,11 @@ int mc_db_get_playback_info(void *handle, const char *server_name, mc_playback_h
SQLITE3_SAFE_FREE(sql_str);
_playback = (media_controller_playback_s *)calloc(1, sizeof(media_controller_playback_s));
- mc_retvm_if(_playback == NULL, MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY, "OUT_OF_MEMORY");
+ if (_playback == NULL) {
+ mc_error("OUT_OF_MEMORY");
+ MC_SAFE_FREE(index);
+ return MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY;
+ }
_playback->state = playback_state;
_playback->position = position;