[Telepathy-commits] [telepathy-gabble/master] Dispose in Jingle Content: reset the source id to zero after removing them

Alban Crequy alban.crequy at collabora.co.uk
Tue Feb 17 01:41:15 PST 2009


Signed-off-by: Will Thompson <will.thompson at collabora.co.uk>
---
 src/jingle-content.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/jingle-content.c b/src/jingle-content.c
index bba0791..027f813 100644
--- a/src/jingle-content.c
+++ b/src/jingle-content.c
@@ -134,10 +134,16 @@ gabble_jingle_content_dispose (GObject *object)
    * terminated, we'll get disposed without being explicitly removed from
    * the session. So, remove the timer here. */
   if (priv->timer_id != 0)
-    g_source_remove (priv->timer_id);
+    {
+      g_source_remove (priv->timer_id);
+      priv->timer_id = 0;
+    }
 
   if (priv->gtalk4_event_id != 0)
-    g_source_remove (priv->gtalk4_event_id);
+    {
+      g_source_remove (priv->gtalk4_event_id);
+      priv->gtalk4_event_id = 0;
+    }
 
   g_free (priv->name);
   priv->name = NULL;
-- 
1.5.6.5




More information about the telepathy-commits mailing list