aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-11-11 23:27:04 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-11-11 23:27:04 +0800
commit196e0ffff20383bd0b0b1424917944fb3ac21851 (patch)
treee2bde0c461feca82ba8d08a7dc4085dbaa478a66
parent35247cddb0215c5d765d474b8da0824776d5a5b2 (diff)
downloadgsoc2013-empathy-196e0ffff20383bd0b0b1424917944fb3ac21851.tar
gsoc2013-empathy-196e0ffff20383bd0b0b1424917944fb3ac21851.tar.gz
gsoc2013-empathy-196e0ffff20383bd0b0b1424917944fb3ac21851.tar.bz2
gsoc2013-empathy-196e0ffff20383bd0b0b1424917944fb3ac21851.tar.lz
gsoc2013-empathy-196e0ffff20383bd0b0b1424917944fb3ac21851.tar.xz
gsoc2013-empathy-196e0ffff20383bd0b0b1424917944fb3ac21851.tar.zst
gsoc2013-empathy-196e0ffff20383bd0b0b1424917944fb3ac21851.zip
AvatarChooser: don't set contact_factory to NULL after unreffing.
The object is being destroyed anyway. svn path=/trunk/; revision=1692
-rw-r--r--libempathy-gtk/empathy-avatar-chooser.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-avatar-chooser.c b/libempathy-gtk/empathy-avatar-chooser.c
index 5c5715eba..71bbae42a 100644
--- a/libempathy-gtk/empathy-avatar-chooser.c
+++ b/libempathy-gtk/empathy-avatar-chooser.c
@@ -223,12 +223,11 @@ avatar_chooser_finalize (GObject *object)
priv = GET_PRIV (object);
- g_object_unref (priv->contact_factory);
- priv->contact_factory = NULL;
-
avatar_chooser_set_account (EMPATHY_AVATAR_CHOOSER (object), NULL);
g_assert (priv->account == NULL && priv->tp_contact_factory == NULL);
+ g_object_unref (priv->contact_factory);
+
if (priv->avatar != NULL) {
empathy_avatar_unref (priv->avatar);
}