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:40:50 +0800
commit9419a9b70f97e3617571ea3ce02138105117788a (patch)
tree2ce3429a6228763d3fbd19e3b2c3dd1ab86d9fbe /libempathy/empathy-utils.c
parentc754b1deab91b48e6b203dd2c6f1293a124c66af (diff)
downloadgsoc2013-empathy-9419a9b70f97e3617571ea3ce02138105117788a.tar
gsoc2013-empathy-9419a9b70f97e3617571ea3ce02138105117788a.tar.gz
gsoc2013-empathy-9419a9b70f97e3617571ea3ce02138105117788a.tar.bz2
gsoc2013-empathy-9419a9b70f97e3617571ea3ce02138105117788a.tar.lz
gsoc2013-empathy-9419a9b70f97e3617571ea3ce02138105117788a.tar.xz
gsoc2013-empathy-9419a9b70f97e3617571ea3ce02138105117788a.tar.zst
gsoc2013-empathy-9419a9b70f97e3617571ea3ce02138105117788a.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);
}