From 196e0ffff20383bd0b0b1424917944fb3ac21851 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Tue, 11 Nov 2008 15:27:04 +0000 Subject: AvatarChooser: don't set contact_factory to NULL after unreffing. The object is being destroyed anyway. svn path=/trunk/; revision=1692 --- libempathy-gtk/empathy-avatar-chooser.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libempathy-gtk/empathy-avatar-chooser.c') 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); } -- cgit v1.2.3