aboutsummaryrefslogtreecommitdiffstats
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-23 21:26:41 +0800
commit26ac10366710eb6e60539421ccf88c5e6833a58b (patch)
treefc46143ec2c673311fc28bcac9ecac2b2b82d8a5
parent1da2f83f35972269f9e4712ecee01ed0ad5a55a2 (diff)
downloadgsoc2013-empathy-26ac10366710eb6e60539421ccf88c5e6833a58b.tar
gsoc2013-empathy-26ac10366710eb6e60539421ccf88c5e6833a58b.tar.gz
gsoc2013-empathy-26ac10366710eb6e60539421ccf88c5e6833a58b.tar.bz2
gsoc2013-empathy-26ac10366710eb6e60539421ccf88c5e6833a58b.tar.lz
gsoc2013-empathy-26ac10366710eb6e60539421ccf88c5e6833a58b.tar.xz
gsoc2013-empathy-26ac10366710eb6e60539421ccf88c5e6833a58b.tar.zst
gsoc2013-empathy-26ac10366710eb6e60539421ccf88c5e6833a58b.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.
-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);
}