summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;