From e59b7ab18c06c473e246a91e8337e629d716b82b Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Wed, 27 May 2009 14:38:27 +0200 Subject: Free the list after calling the callback --- libempathy/empathy-dispatcher.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libempathy') diff --git a/libempathy/empathy-dispatcher.c b/libempathy/empathy-dispatcher.c index 39566e581..9b8c997bd 100644 --- a/libempathy/empathy-dispatcher.c +++ b/libempathy/empathy-dispatcher.c @@ -777,6 +777,7 @@ dispatcher_connection_got_all (TpProxy *proxy, request->callback (retval, request->user_data); free_find_channel_request (request); + g_list_free (retval); } g_list_free (requests); @@ -1560,6 +1561,8 @@ find_channel_class_idle_cb (gpointer user_data) request->callback (retval, request->user_data); free_find_channel_request (request); + g_list_free (retval); + return FALSE; } -- cgit v1.2.3