diff options
author | Anderson Lizardo <anderson.lizardo@openbossa.org> | 2012-04-03 12:14:58 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-04-05 08:07:14 -0700 |
commit | 633ef5a6817a59c061513125400064e039ddb852 (patch) | |
tree | cec3453fb66b07c0678603a2a217dc75a27b33c0 /gdbus | |
parent | 640ba9b3e1d35d69413733ae6b8875ccc37393ac (diff) | |
download | connman-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.c | 2 |
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; |