diff options
Diffstat (limited to 'libempathy/empathy-utils.c')
-rw-r--r-- | libempathy/empathy-utils.c | 4 |
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); } |