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:35 -0700 |
commit | 9b26016a24d8a4858d132ccabfd608a980a2a328 (patch) | |
tree | 7b611853ab40c6bd4b74688b5b4519c76060a397 /gdbus/watch.c | |
parent | 2f232f8b02c7d1a4bac25423b790f21e7db4c56d (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/watch.c')
-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; |