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.
This commit is contained in:
Anderson Lizardo 2012-04-03 12:14:58 -04:00 committed by Marcel Holtmann
parent 2f232f8b02
commit 9b26016a24
1 changed files with 1 additions and 1 deletions

View File

@ -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;