aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy/empathy-tp-chat.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c
index 1329c61be..ef0ac6c2d 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