]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-tp-chat.c
Unref TpChat's channel after emitting destroy.
[empathy.git] / libempathy / empathy-tp-chat.c
index 1329c61beab614b28a5d31bf1ff788087b80dca8..ef0ac6c2d8d83b779c2fb56fb498722319c621bc 100644 (file)
@@ -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