diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2012-10-01 20:45:38 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2012-10-02 17:04:52 +0300 |
commit | 8b31072d87b43482df80f9eac169fc4d9d31e2a7 (patch) | |
tree | 7439536e94a409c5c4d5db75feb427a11d9a4fe3 | |
parent | d5d032b7e36192ae975b8222d2124fec70083f6c (diff) | |
download | obexd-8b31072d87b43482df80f9eac169fc4d9d31e2a7.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.
-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 a402ca9..07feb61 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); } |