empathy r2821 - trunk/libempathy



Author: xclaesse
Date: Mon Apr 13 09:34:39 2009
New Revision: 2821
URL: http://svn.gnome.org/viewvc/empathy?rev=2821&view=rev

Log:
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 <will thompson collabora co uk>

Modified:
   trunk/libempathy/empathy-tp-chat.c

Modified: trunk/libempathy/empathy-tp-chat.c
==============================================================================
--- trunk/libempathy/empathy-tp-chat.c	(original)
+++ trunk/libempathy/empathy-tp-chat.c	Mon Apr 13 09:34:39 2009
@@ -102,12 +102,11 @@
 {
 	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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]