empathy r2328 - trunk/libempathy-gtk



Author: xclaesse
Date: Fri Jan 30 17:34:18 2009
New Revision: 2328
URL: http://svn.gnome.org/viewvc/empathy?rev=2328&view=rev

Log:
unref store once only

Modified:
   trunk/libempathy-gtk/empathy-contact-selector.c

Modified: trunk/libempathy-gtk/empathy-contact-selector.c
==============================================================================
--- trunk/libempathy-gtk/empathy-contact-selector.c	(original)
+++ trunk/libempathy-gtk/empathy-contact-selector.c	Fri Jan 30 17:34:18 2009
@@ -339,7 +339,11 @@
   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);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]