aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-contact-factory.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libempathy/empathy-contact-factory.c b/libempathy/empathy-contact-factory.c
index 2169e7108..e35bc350d 100644
--- a/libempathy/empathy-contact-factory.c
+++ b/libempathy/empathy-contact-factory.c
@@ -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 *