diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-08-25 13:30:54 +0100 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-08-25 13:30:54 +0100 |
commit | be174b5a0a863da4dd72206d7169bf6d36399301 (patch) | |
tree | 8d8ebb69f860b1020f02825f30f3c144b2de0e2d /src/search-manager.c | |
parent | 345fe753717420d201adf0ec745b761b1a1dee2d (diff) |
gabble_search_manager_close_all: free the requests_waiting_disco list if needed
Diffstat (limited to 'src/search-manager.c')
-rw-r--r-- | 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 b67da23c0..6b657f6fa 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 |