aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-utils.c
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2013-10-18 21:26:43 +0800
committerPhilip Withnall <philip.withnall@collabora.co.uk>2013-10-22 17:36:18 +0800
commit35b9f0c90f66e81f5008ff866b5b4b4b47aae0a5 (patch)
tree0dd29aaae33cd89bd5339162636a2b76355cf68d /libempathy/empathy-utils.c
parent5d618c618444363615431646471df7670ed76cf1 (diff)
downloadgsoc2013-empathy-35b9f0c90f66e81f5008ff866b5b4b4b47aae0a5.tar
gsoc2013-empathy-35b9f0c90f66e81f5008ff866b5b4b4b47aae0a5.tar.gz
gsoc2013-empathy-35b9f0c90f66e81f5008ff866b5b4b4b47aae0a5.tar.bz2
gsoc2013-empathy-35b9f0c90f66e81f5008ff866b5b4b4b47aae0a5.tar.lz
gsoc2013-empathy-35b9f0c90f66e81f5008ff866b5b4b4b47aae0a5.tar.xz
gsoc2013-empathy-35b9f0c90f66e81f5008ff866b5b4b4b47aae0a5.tar.zst
gsoc2013-empathy-35b9f0c90f66e81f5008ff866b5b4b4b47aae0a5.zip
libempathy: Fix several memory leaks from libgee
See commit 039dc326208e02b687e93739434e27a867f4ffa7. https://bugzilla.gnome.org/show_bug.cgi?id=710453
Diffstat (limited to 'libempathy/empathy-utils.c')
-rw-r--r--libempathy/empathy-utils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c
index 49a90f3b6..4555d4144 100644
--- a/libempathy/empathy-utils.c
+++ b/libempathy/empathy-utils.c
@@ -560,7 +560,9 @@ empathy_dup_persona_store_for_connection (TpConnection *connection)
account = tpf_persona_store_get_account (persona_store);
conn_cur = tp_account_get_connection (account);
if (conn_cur == connection)
- result = persona_store;
+ result = g_object_ref (persona_store);
+
+ g_clear_object (&persona_store);
}
g_clear_object (&iter);
}