From: Anderson Lizardo Date: Tue, 3 Apr 2012 16:14:58 +0000 (-0400) Subject: gdbus: Use destroy callback for service watch X-Git-Tag: 0.80~76 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=633ef5a6817a59c061513125400064e039ddb852;p=platform%2Fupstream%2Fconnman.git gdbus: Use destroy callback for service watch Even though service watches accepted a "destroy" callback, they were being ignored. This fix properly pass them along so they are called when the watch is removed. --- diff --git a/gdbus/watch.c b/gdbus/watch.c index fba58c3..9a716b0 100644 --- a/gdbus/watch.c +++ b/gdbus/watch.c @@ -666,7 +666,7 @@ guint g_dbus_add_service_watch(DBusConnection *connection, const char *name, if (data == NULL) return 0; - cb = filter_data_add_callback(data, connect, disconnect, NULL, NULL, + cb = filter_data_add_callback(data, connect, disconnect, NULL, destroy, user_data); if (cb == NULL) return 0;