empathy r1394 - trunk/libempathy



Author: xclaesse
Date: Wed Aug 27 12:44:53 2008
New Revision: 1394
URL: http://svn.gnome.org/viewvc/empathy?rev=1394&view=rev

Log:
Always return a new ref in empathy_contact_factory_get_tp_factory. Fixes bug #549545.

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

Modified: trunk/libempathy/empathy-contact-factory.c
==============================================================================
--- trunk/libempathy/empathy-contact-factory.c	(original)
+++ trunk/libempathy/empathy-contact-factory.c	Wed Aug 27 12:44:53 2008
@@ -41,12 +41,10 @@
 	tp_factory = g_hash_table_lookup (priv->accounts, account);
 	if (!tp_factory) {
 		tp_factory = empathy_tp_contact_factory_new (account);
-		g_hash_table_insert (priv->accounts,
-				     g_object_ref (account),
-				     tp_factory);
+		g_hash_table_insert (priv->accounts, account, tp_factory);
 	}
 
-	return tp_factory;
+	return g_object_ref (tp_factory);
 }
 
 EmpathyContact *



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