summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/service.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/service.c b/plugins/service.c
index d154255f..c2f5f15c 100644
--- a/plugins/service.c
+++ b/plugins/service.c
@@ -729,7 +729,10 @@ static void path_unregister(void *data)
for (l = serv_adapter->records; l != NULL; l = next) {
struct record_data *user_record = l->data;
+
next = l->next;
+
+ g_dbus_remove_watch(connection, user_record->listener_id);
exit_callback(connection, user_record);
}
}