aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-08-27 20:44:53 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-08-27 20:44:53 +0800
commite1b231b85fb3e5dd8002eb77d7c0ae5779542464 (patch)
treea2f9f1b7fb4774c6f86ebba988d9cdf134ecdd57 /libempathy
parentc620560ccc7ee1a9e4338bc045b7945f8cd35e6c (diff)
downloadgsoc2013-empathy-e1b231b85fb3e5dd8002eb77d7c0ae5779542464.tar
gsoc2013-empathy-e1b231b85fb3e5dd8002eb77d7c0ae5779542464.tar.gz
gsoc2013-empathy-e1b231b85fb3e5dd8002eb77d7c0ae5779542464.tar.bz2
gsoc2013-empathy-e1b231b85fb3e5dd8002eb77d7c0ae5779542464.tar.lz
gsoc2013-empathy-e1b231b85fb3e5dd8002eb77d7c0ae5779542464.tar.xz
gsoc2013-empathy-e1b231b85fb3e5dd8002eb77d7c0ae5779542464.tar.zst
gsoc2013-empathy-e1b231b85fb3e5dd8002eb77d7c0ae5779542464.zip
Always return a new ref in empathy_contact_factory_get_tp_factory. Fixes bug #549545.
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@1394 4ee84921-47dd-4033-b63a-18d7a039a3e4
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 *