Resource leak fix 21/156821/1
authorhj kim <backto.kim@samsung.com>
Fri, 20 Oct 2017 06:10:15 +0000 (15:10 +0900)
committerhj kim <backto.kim@samsung.com>
Fri, 20 Oct 2017 06:10:42 +0000 (15:10 +0900)
Change-Id: I1120c3d0e72acddf31cf98485cdebdbfe0f430d5

lib/media-util-noti.c

index 31d7413..cdc326b 100755 (executable)
@@ -242,6 +242,7 @@ int media_db_update_send(int pid, /* mandatory */
                        message = g_variant_new("(iiissis)", item, pid, update_type, repl_path, uuid, media_type, mime_type);
                } else {
                        MSAPI_DBG_ERR("uuid or mime_type is NULL");
+                       g_object_unref(bus);
                        return MS_MEDIA_ERR_INVALID_PARAMETER;
                }
        } else if (item == MS_MEDIA_ITEM_DIRECTORY) {