]> git.0d.be Git - empathy.git/commitdiff
Always return a new ref in empathy_contact_factory_get_tp_factory. Fixes bug #549545.
authorXavier Claessens <xclaesse@src.gnome.org>
Wed, 27 Aug 2008 12:44:53 +0000 (12:44 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Wed, 27 Aug 2008 12:44:53 +0000 (12:44 +0000)
svn path=/trunk/; revision=1394

libempathy/empathy-contact-factory.c

index 2169e7108a4501f4e9a19adc8f216d6a64b2c3c0..e35bc350da3fb71b8c6100572bf67773a37dfc96 100644 (file)
@@ -41,12 +41,10 @@ empathy_contact_factory_get_tp_factory (EmpathyContactFactory *factory,
        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 *