aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-08-27 20:44:53 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-08-27 20:44:53 +0800
commitc412bfd8dcda3e13f78ce7212fcda7853280a843 (patch)
treea2f9f1b7fb4774c6f86ebba988d9cdf134ecdd57
parent42cffbda38863c70def9fabc8df0f192a9d7c3f0 (diff)
downloadgsoc2013-empathy-c412bfd8dcda3e13f78ce7212fcda7853280a843.tar
gsoc2013-empathy-c412bfd8dcda3e13f78ce7212fcda7853280a843.tar.gz
gsoc2013-empathy-c412bfd8dcda3e13f78ce7212fcda7853280a843.tar.bz2
gsoc2013-empathy-c412bfd8dcda3e13f78ce7212fcda7853280a843.tar.lz
gsoc2013-empathy-c412bfd8dcda3e13f78ce7212fcda7853280a843.tar.xz
gsoc2013-empathy-c412bfd8dcda3e13f78ce7212fcda7853280a843.tar.zst
gsoc2013-empathy-c412bfd8dcda3e13f78ce7212fcda7853280a843.zip
Always return a new ref in empathy_contact_factory_get_tp_factory. Fixes bug #549545.
svn path=/trunk/; revision=1394
-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 *