summaryrefslogtreecommitdiff
path: root/gdbus
diff options
context:
space:
mode:
authorAnderson Lizardo <anderson.lizardo@openbossa.org>2012-04-03 12:14:58 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2012-04-04 12:56:51 +0300
commitc4494591c9a0b48b496c0ee76686411556ebfd43 (patch)
tree0842b0944548e016b3b0ca9c742321a71ad2c1d2 /gdbus
parent0779dd9b3b8bf9edfed4f9c66740a606faedd377 (diff)
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.
Diffstat (limited to 'gdbus')
-rw-r--r--gdbus/watch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdbus/watch.c b/gdbus/watch.c
index fba58c32..9a716b09 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;