aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}