aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy/empathy-tp-chat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c
index 86aca446b..6d29807e4 100644
--- a/libempathy/empathy-tp-chat.c
+++ b/libempathy/empathy-tp-chat.c
@@ -1090,7 +1090,7 @@ tp_chat_got_renamed_contacts_cb (TpConnection *connection,
if (priv->user == old) {
/* We change our nick */
- g_object_unref (priv->user);
+ tp_clear_object (&priv->user);
priv->user = g_object_ref (new);
}