summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMyungki Lee <mk5004.lee@samsung.com>2017-02-14 15:40:42 +0900
committerMyungki Lee <mk5004.lee@samsung.com>2017-02-21 16:08:02 +0900
commitad7c39d7d51ddf5a767015fa6c0dcbfaf24e6990 (patch)
tree36dc0edf6650b52b1a6c19ec5e49e25fb0f587d6
parent681bbfaf8205b444a4d0c5e0b3b092d53151fb1d (diff)
downloadnotification-ad7c39d7d51ddf5a767015fa6c0dcbfaf24e6990.tar.gz
notification-ad7c39d7d51ddf5a767015fa6c0dcbfaf24e6990.tar.bz2
notification-ad7c39d7d51ddf5a767015fa6c0dcbfaf24e6990.zip
Change-Id: Ie31faeff68a199f960afb14cc7bb91d76b464d19 Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
-rwxr-xr-xsrc/notification_ipc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/notification_ipc.c b/src/notification_ipc.c
index fdecf6f..26f2db6 100755
--- a/src/notification_ipc.c
+++ b/src/notification_ipc.c
@@ -562,10 +562,12 @@ static void _send_event(GVariant *parameters)
g_variant_unref(body);
if (ret != NOTIFICATION_ERROR_NONE) {
NOTIFICATION_ERR("failed to make notification handle from gvariant");
+ notification_free(noti);
return;
}
notification_call_event_handler_cb(noti, event_type);
+ notification_free(noti);
}
static void _delete_event(GVariant *parameters)
@@ -1396,6 +1398,7 @@ int notification_ipc_request_load_system_setting(notification_system_setting_h *
if (dnd_allow_exception == NULL) {
g_object_unref(reply);
g_variant_iter_free(iter);
+ free(result_setting);
return NOTIFICATION_ERROR_OUT_OF_MEMORY;
}