summaryrefslogtreecommitdiff
path: root/gdbus
diff options
context:
space:
mode:
authorAnderson Lizardo <anderson.lizardo@openbossa.org>2012-04-03 12:14:58 -0400
committerMarcel Holtmann <marcel@holtmann.org>2012-04-05 08:07:14 -0700
commit633ef5a6817a59c061513125400064e039ddb852 (patch)
treecec3453fb66b07c0678603a2a217dc75a27b33c0 /gdbus
parent640ba9b3e1d35d69413733ae6b8875ccc37393ac (diff)
downloadconnman-633ef5a6817a59c061513125400064e039ddb852.tar.gz
connman-633ef5a6817a59c061513125400064e039ddb852.tar.bz2
connman-633ef5a6817a59c061513125400064e039ddb852.zip
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;