]> git.0d.be Git - empathy.git/commitdiff
unref store once only
authorXavier Claessens <xclaesse@src.gnome.org>
Fri, 30 Jan 2009 17:34:18 +0000 (17:34 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 30 Jan 2009 17:34:18 +0000 (17:34 +0000)
svn path=/trunk/; revision=2328

libempathy-gtk/empathy-contact-selector.c

index 1a8954d02306b6d365fbd24ec9a0a745a7eed4d8..322fedc248afedcf1a3a8a326e6512c188052c30 100644 (file)
@@ -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);
 }