[telepathy-gabble/telepathy-gabble-0.8] Fix a crash in vCard Manager dispose: remove the source of the suspended timeout
Alban Crequy
alban.crequy at collabora.co.uk
Wed Sep 30 09:35:58 PDT 2009
---
src/vcard-manager.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/vcard-manager.c b/src/vcard-manager.c
index 239eceb..2f1b327 100644
--- a/src/vcard-manager.c
+++ b/src/vcard-manager.c
@@ -498,6 +498,12 @@ disconnect_entry_foreach (gpointer handle, gpointer value, gpointer unused)
GError err = { TP_ERRORS, TP_ERROR_DISCONNECTED, "Connection closed" };
GabbleVCardCacheEntry *entry = value;
+ if (entry->suspended_timer_id)
+ {
+ g_source_remove (entry->suspended_timer_id);
+ entry->suspended_timer_id = 0;
+ }
+
cache_entry_complete_requests (entry, &err);
if (entry->pipeline_item)
--
1.5.6.5
More information about the telepathy-commits
mailing list