From 638056b7fb08f3293d570102e2cd41f5c4a98530 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 30 Jan 2009 17:34:18 +0000 Subject: unref store once only svn path=/trunk/; revision=2328 --- libempathy-gtk/empathy-contact-selector.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libempathy-gtk/empathy-contact-selector.c b/libempathy-gtk/empathy-contact-selector.c index 1a8954d02..322fedc24 100644 --- a/libempathy-gtk/empathy-contact-selector.c +++ b/libempathy-gtk/empathy-contact-selector.c @@ -339,7 +339,11 @@ empathy_contact_selector_dispose (GObject *object) EmpathyContactSelector *selector = EMPATHY_CONTACT_SELECTOR (object); EmpathyContactSelectorPriv *priv = GET_PRIV (selector); - g_object_unref (priv->store); + if (priv->store) + { + g_object_unref (priv->store); + priv->store = NULL; + } (G_OBJECT_CLASS (empathy_contact_selector_parent_class)->dispose) (object); } -- cgit v1.2.3