[telepathy-gabble/master] Unref the WockyMuc object when disposing the MucChannel
Sjoerd Simons
sjoerd.simons at collabora.co.uk
Thu Jan 7 08:03:42 PST 2010
---
src/muc-channel.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/muc-channel.c b/src/muc-channel.c
index 11eff43..b919b1b 100644
--- a/src/muc-channel.c
+++ b/src/muc-channel.c
@@ -1212,6 +1212,11 @@ gabble_muc_channel_dispose (GObject *object)
clear_join_timer (self);
clear_poll_timer (self);
+ if (priv->wmuc != NULL)
+ g_object_unref (priv->wmuc);
+
+ priv->wmuc = NULL;
+
if (!priv->closed)
{
priv->closed = TRUE;
--
1.5.6.5
More information about the telepathy-commits
mailing list