Fix a bug in notification
authorHyunjun Ko <zzoon.ko@samsung.com>
Wed, 24 Apr 2013 10:08:02 +0000 (19:08 +0900)
committerHyunjun Ko <zzoon.ko@samsung.com>
Wed, 24 Apr 2013 10:49:13 +0000 (19:49 +0900)
Change-Id: I13837fb72df6e9382416e29ac08a478128e79c91

packaging/libmedia-service.spec
src/common/media-svc-media.c

index 4673f8a..e87dbe0 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       libmedia-service
 Summary:    Media information service library for multimedia applications.
-Version: 0.2.41
+Version: 0.2.42
 Release:    1
 Group:      System/Libraries
 License:    Apache License, Version 2.0
index a181c61..12c79f1 100755 (executable)
@@ -753,6 +753,7 @@ int _media_svc_get_noti_info(sqlite3 *handle, const char *path, int update_item,
        if (ret != MEDIA_INFO_ERROR_NONE) {
                if (ret == MEDIA_INFO_ERROR_DATABASE_NO_RECORD && update_item == MS_MEDIA_ITEM_DIRECTORY) {
                        media_svc_error("This is root directory of media");
+                       sql_stmt = NULL;
                        is_root_dir = TRUE;
                } else {
                        media_svc_error("error when _media_svc_get_noti_info. err = [%d]", ret);