summaryrefslogtreecommitdiff
path: root/gdbus
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-10-01 20:45:38 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-10-03 14:38:42 +0300
commite4bf2b16ddf6cd8eaf998ca3b0c6511f0602ea38 (patch)
tree09eaf6821a338c98dff6cb0112800937790f37bd /gdbus
parent9a4318f6d23707a7411f4e3b80b05e3c55b3d428 (diff)
downloadbluez-e4bf2b16ddf6cd8eaf998ca3b0c6511f0602ea38.tar.gz
gdbus: Fix not freeing list node by using g_slist_delete_link
g_slist_remove_link does not free the node which can cause leaks so replace that with g_slist_delete_link which does free memory properly.
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 a402ca972..07feb619d 100644
--- a/gdbus/watch.c
+++ b/gdbus/watch.c
@@ -574,7 +574,7 @@ static DBusHandlerResult message_filter(DBusConnection *connection,
continue;
remove_match(data);
- listeners = g_slist_remove_link(listeners, l);
+ listeners = g_slist_delete_link(listeners, l);
filter_data_free(data);
}