diff options
author | Hwankyu Jhun <h.jhun@samsung.com> | 2020-10-30 22:56:23 +0900 |
---|---|---|
committer | Hwankyu Jhun <h.jhun@samsung.com> | 2020-10-30 22:56:47 +0900 |
commit | 8391e38cb49cb3f1a004739dba1ed9969743108e (patch) | |
tree | 96eb4a6b2a431a0e2f770893355eaf69579413db | |
parent | d9838bb4e07d989378f9ad0ea2c6a91d6a06ed08 (diff) | |
download | shortcut-8391e38cb49cb3f1a004739dba1ed9969743108e.tar.gz shortcut-8391e38cb49cb3f1a004739dba1ed9969743108e.tar.bz2 shortcut-8391e38cb49cb3f1a004739dba1ed9969743108e.zip |
Fix memory leak
Change-Id: Ia257ae739a5f69daeecce861d9cac2d8a5d04cdf
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r-- | lib/src/shortcut_internal.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/src/shortcut_internal.c b/lib/src/shortcut_internal.c index ecb2328..077293c 100644 --- a/lib/src/shortcut_internal.c +++ b/lib/src/shortcut_internal.c @@ -338,6 +338,8 @@ int _send_service_register(void) int result; result = _send_sync_shortcut(g_variant_new("(i)", getuid()), &reply, "shortcut_service_register"); + if (reply) + g_object_unref(reply); SHORTCUT_DBG("_send_service_register done"); return result; } |