empathy r743 - trunk/libempathy



Author: xclaesse
Date: Tue Mar 11 12:22:14 2008
New Revision: 743
URL: http://svn.gnome.org/viewvc/empathy?rev=743&view=rev

Log:
Set self handle to 0 when connection is invalidated


Modified:
   trunk/libempathy/empathy-tp-contact-factory.c

Modified: trunk/libempathy/empathy-tp-contact-factory.c
==============================================================================
--- trunk/libempathy/empathy-tp-contact-factory.c	(original)
+++ trunk/libempathy/empathy-tp-contact-factory.c	Tue Mar 11 12:22:14 2008
@@ -657,11 +657,11 @@
 	g_object_unref (priv->connection);
 	priv->connection = NULL;
 	priv->ready = FALSE;
+	priv->self_handle = 0;
 
 	g_list_foreach (priv->contacts,
 			tp_contact_factory_disconnect_contact_foreach,
 			tp_factory);
-
 }
 
 
@@ -760,7 +760,6 @@
 
 	if (priv->connection) {
 		/* We already have our connection object */
-		g_object_unref (tp_conn);
 		return;
 	}
 



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