From a731f7f2e886a3f685324e35a1ae67775dbccfd8 Mon Sep 17 00:00:00 2001 From: Yong Yeon Kim Date: Fri, 24 May 2013 21:40:51 +0900 Subject: modify smack rule --- lib/media-util-noti.c | 3 +++ media-server.manifest | 1 + packaging/media-server.spec | 1 + 3 files changed, 5 insertions(+) diff --git a/lib/media-util-noti.c b/lib/media-util-noti.c index 6cb380b..283e07d 100755 --- a/lib/media-util-noti.c +++ b/lib/media-util-noti.c @@ -273,6 +273,7 @@ int media_db_update_send(int pid, /* mandatory */ DBUS_TYPE_INVALID); } else { MSAPI_DBG_ERR("uuid or mime_type is NULL"); + dbus_connection_unref(bus); return MS_MEDIA_ERR_INVALID_PARAMETER; } } else if (item == MS_MEDIA_ITEM_DIRECTORY) { @@ -311,6 +312,8 @@ int media_db_update_send(int pid, /* mandatory */ MSAPI_DBG_ERR("dbus_message_new_signal failed"); } + dbus_connection_unref(bus); + /* Return TRUE to tell the event loop we want to be called again */ return MS_MEDIA_ERR_NONE; } diff --git a/media-server.manifest b/media-server.manifest index 9c68207..9c7a9a8 100644 --- a/media-server.manifest +++ b/media-server.manifest @@ -3,6 +3,7 @@ + diff --git a/packaging/media-server.spec b/packaging/media-server.spec index 1caece0..09c8f68 100755 --- a/packaging/media-server.spec +++ b/packaging/media-server.spec @@ -8,6 +8,7 @@ Source0: %{name}-%{version}.tar.gz Source1: media-server.service Requires(post): /usr/bin/vconftool +Requires: system-server BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(vconf) BuildRequires: pkgconfig(dlog) -- cgit v1.2.3