libgdbus: fix destroy_func param of g_dbus_connection_signal_unsubscribe 52/251952/1 accepted/tizen/unified/20210122.123002 submit/tizen/20210121.074344
authorYunmi Ha <yunmi.ha@samsung.com>
Thu, 21 Jan 2021 06:42:32 +0000 (15:42 +0900)
committerYunmi Ha <yunmi.ha@samsung.com>
Thu, 21 Jan 2021 06:42:32 +0000 (15:42 +0900)
Change-Id: Iecac374f5b0439f184afb3a5715f3d786c2ba931
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
src/libgdbus/dbus-system.c

index cb63c88..a78fe4d 100644 (file)
@@ -1418,11 +1418,6 @@ err:
        return -1;
 }
 
-static void _free_func_signal(gpointer data)
-{
-       //_D("free signal subscribe");
-}
-
 guint subscribe_dbus_signal(dbus_handle_h handle, const char *path,
                        const char *iface, const char *name,
                        GDBusSignalCallback cb, void *data,
@@ -1442,7 +1437,7 @@ guint subscribe_dbus_signal(dbus_handle_h handle, const char *path,
                _E("connection is null. check bus status");
                return 0;
        }
-       return g_dbus_connection_signal_subscribe(dh->conn, NULL, iface, name, path, NULL, G_DBUS_SIGNAL_FLAGS_NONE, cb, data, _free_func_signal);
+       return g_dbus_connection_signal_subscribe(dh->conn, NULL, iface, name, path, NULL, G_DBUS_SIGNAL_FLAGS_NONE, cb, data, free_func);
 }
 
 void unsubscribe_dbus_signal(dbus_handle_h handle, guint id)