[telepathy-mission-control/master] McdDispatcher: free the client structs rather than leaking them
Simon McVittie
simon.mcvittie at collabora.co.uk
Thu May 14 08:26:35 PDT 2009
This could be why the use-after-free issues in McdDispatcher never
actually did any damage :-)
---
src/mcd-dispatcher.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/mcd-dispatcher.c b/src/mcd-dispatcher.c
index 82e00de..6e6f152 100644
--- a/src/mcd-dispatcher.c
+++ b/src/mcd-dispatcher.c
@@ -336,6 +336,8 @@ mcd_client_free (McdClient *client)
(GFunc)g_hash_table_destroy, NULL);
g_list_foreach (client->observer_filters,
(GFunc)g_hash_table_destroy, NULL);
+
+ g_slice_free (McdClient, client);
}
static GList *
--
1.5.6.5
More information about the telepathy-commits
mailing list