Fix memory leak
[platform/core/appfw/shortcut.git] / lib / src / shortcut_internal.c
index ecb2328..077293c 100644 (file)
@@ -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;
 }