summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryoungsub ko <ys4610.ko@samsung.com>2013-05-13 20:16:05 +0900
committeryoungsub ko <ys4610.ko@samsung.com>2013-05-13 20:16:29 +0900
commit581dd0cbac14f0c1b7816809fb0a20c118f17558 (patch)
tree4631aff3dadb92a1fc848db4ae426dcdb8f940ee
parent29b05ca1a032c0391d9579f3057619c86ca2a9c4 (diff)
downloadbadge-581dd0cbac14f0c1b7816809fb0a20c118f17558.tar.gz
badge-581dd0cbac14f0c1b7816809fb0a20c118f17558.tar.bz2
badge-581dd0cbac14f0c1b7816809fb0a20c118f17558.zip
Change-Id: I16a87cd6ae0b7cdca368887bc71448542de6430f
-rwxr-xr-xpackaging/badge.spec2
-rwxr-xr-xsrc/badge_ipc.c8
2 files changed, 9 insertions, 1 deletions
diff --git a/packaging/badge.spec b/packaging/badge.spec
index 7e378a4..993d42f 100755
--- a/packaging/badge.spec
+++ b/packaging/badge.spec
@@ -1,7 +1,7 @@
%define DBDIR "/opt/dbspace"
Name: badge
Summary: badge library
-Version: 0.0.4
+Version: 0.0.5
Release: 1
Group: TBD
License: Apache-2.0
diff --git a/src/badge_ipc.c b/src/badge_ipc.c
index c6db5ca..0661dc1 100755
--- a/src/badge_ipc.c
+++ b/src/badge_ipc.c
@@ -522,8 +522,10 @@ badge_error_e badge_ipc_request_insert(const char *pkgname, const char *writable
}
if (ret != BADGE_ERROR_NONE) {
+ packet_unref(result);
return ret;
}
+ packet_unref(result);
} else {
badge_ipc_is_master_ready();
return BADGE_ERROR_SERVICE_NOT_READY;
@@ -551,8 +553,10 @@ badge_error_e badge_ipc_request_delete(const char *pkgname, const char *caller)
}
if (ret != BADGE_ERROR_NONE) {
+ packet_unref(result);
return ret;
}
+ packet_unref(result);
} else {
badge_ipc_is_master_ready();
return BADGE_ERROR_SERVICE_NOT_READY;
@@ -580,8 +584,10 @@ badge_error_e badge_ipc_request_set_count(const char *pkgname, const char *calle
}
if (ret != BADGE_ERROR_NONE) {
+ packet_unref(result);
return ret;
}
+ packet_unref(result);
} else {
badge_ipc_is_master_ready();
return BADGE_ERROR_SERVICE_NOT_READY;
@@ -609,8 +615,10 @@ badge_error_e badge_ipc_request_set_display(const char *pkgname, const char *cal
}
if (ret != BADGE_ERROR_NONE) {
+ packet_unref(result);
return ret;
}
+ packet_unref(result);
} else {
badge_ipc_is_master_ready();
return BADGE_ERROR_SERVICE_NOT_READY;