[Telepathy-commits] [telepathy-gabble/master] JingleContent: remove ack timer in dispose if it's still running
Senko Rasic
senko.rasic at collabora.co.uk
Thu Feb 12 07:56:14 PST 2009
---
src/jingle-content.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/jingle-content.c b/src/jingle-content.c
index ad84fd3..fa46c8c 100644
--- a/src/jingle-content.c
+++ b/src/jingle-content.c
@@ -127,7 +127,11 @@ gabble_jingle_content_dispose (GObject *object)
DEBUG ("dispose called");
priv->dispose_has_run = TRUE;
- g_assert (priv->timer_id == 0);
+ /* If we're in the middle of content-add/-accept when the session is
+ * 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_free (priv->name);
priv->name = NULL;
--
1.5.6.5
More information about the telepathy-commits
mailing list