aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-03-23 21:26:29 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-03-24 17:05:50 +0800
commit93519f10b6c247017920a39fc0122c3310bfe062 (patch)
treec5428d4c433a120000c0ef3d9ffacae13faef361 /libempathy
parent97167291ee0e9436dd9282d0d8d673f6ed2d10cf (diff)
downloadgsoc2013-empathy-93519f10b6c247017920a39fc0122c3310bfe062.tar
gsoc2013-empathy-93519f10b6c247017920a39fc0122c3310bfe062.tar.gz
gsoc2013-empathy-93519f10b6c247017920a39fc0122c3310bfe062.tar.bz2
gsoc2013-empathy-93519f10b6c247017920a39fc0122c3310bfe062.tar.lz
gsoc2013-empathy-93519f10b6c247017920a39fc0122c3310bfe062.tar.xz
gsoc2013-empathy-93519f10b6c247017920a39fc0122c3310bfe062.tar.zst
gsoc2013-empathy-93519f10b6c247017920a39fc0122c3310bfe062.zip
tp_chat_got_renamed_contacts_cb: use tp_clear_object() to unref priv->user
If priv->user and old are both NULL, we used to crash.
Diffstat (limited to 'libempathy')
-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 561642393..462f8a77b 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);
}