From 9419a9b70f97e3617571ea3ce02138105117788a Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Fri, 18 Oct 2013 14:26:43 +0100 Subject: libempathy: Fix several memory leaks from libgee See commit 039dc326208e02b687e93739434e27a867f4ffa7. https://bugzilla.gnome.org/show_bug.cgi?id=710453 --- libempathy/empathy-utils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libempathy/empathy-utils.c') 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); } -- cgit v1.2.3