From d9c10ab6a37590b52b51a310bc1389c426fb7c77 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 21 Oct 2011 14:52:02 +0200 Subject: [PATCH] contact_list_store_dispose: unset the timer ids https://bugzilla.gnome.org/show_bug.cgi?id=662211 --- libempathy-gtk/empathy-contact-list-store.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libempathy-gtk/empathy-contact-list-store.c b/libempathy-gtk/empathy-contact-list-store.c index 4f7398e2..233a923c 100644 --- a/libempathy-gtk/empathy-contact-list-store.c +++ b/libempathy-gtk/empathy-contact-list-store.c @@ -375,12 +375,14 @@ contact_list_store_dispose (GObject *object) object); g_object_unref (priv->list); - if (priv->inhibit_active) { + if (priv->inhibit_active != 0) { g_source_remove (priv->inhibit_active); + priv->inhibit_active = 0; } if (priv->setup_idle_id != 0) { g_source_remove (priv->setup_idle_id); + priv->setup_idle_id = 0; } g_hash_table_destroy (priv->status_icons); -- 2.39.2