[telepathy-gabble/master] gabble_search_manager_close_all: free the requests_waiting_disco list if needed

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Tue Aug 25 05:30:54 PDT 2009


---
 src/search-manager.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/search-manager.c b/src/search-manager.c
index b67da23..6b657f6 100644
--- a/src/search-manager.c
+++ b/src/search-manager.c
@@ -115,6 +115,11 @@ gabble_search_manager_close_all (GabbleSearchManager *self)
   g_hash_table_destroy (self->priv->channels);
   self->priv->channels = NULL;
   g_list_free (chans);
+
+  /* base-connection cancels all the pending requests when disconnecting so we
+   * don't have to do anything. */
+  g_slist_free (self->priv->requests_waiting_disco);
+  self->priv->requests_waiting_disco = NULL;
 }
 
 static void
-- 
1.5.6.5




More information about the telepathy-commits mailing list