From 185b19dad43ea2f69a9958693430724b8537bc02 Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Mon, 13 Apr 2009 09:34:39 +0000 Subject: [PATCH] Unref TpChat's channel after emitting destroy. This allows callbacks connected to "destroy" to call functions which use priv->channel to work. Fixes Gnome bug #578356. Signed-off-by: Will Thompson svn path=/trunk/; revision=2821 --- libempathy/empathy-tp-chat.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c index 1329c61b..ef0ac6c2 100644 --- a/libempathy/empathy-tp-chat.c +++ b/libempathy/empathy-tp-chat.c @@ -102,12 +102,11 @@ tp_chat_invalidated_cb (TpProxy *proxy, { EmpathyTpChatPriv *priv = GET_PRIV (chat); - g_object_unref (priv->channel); - priv->channel = NULL; - DEBUG ("Channel invalidated: %s", message); g_signal_emit (chat, signals[DESTROY], 0); + g_object_unref (priv->channel); + priv->channel = NULL; } static void -- 2.39.2