[empathy] contact-selector-dialog: unref filter_account when disposing



commit c30bc2459bfdbd29f5607e48c9d94f1476defc80
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon Mar 15 10:25:42 2010 +0100

    contact-selector-dialog: unref filter_account when disposing

 libempathy-gtk/empathy-contact-selector-dialog.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-contact-selector-dialog.c b/libempathy-gtk/empathy-contact-selector-dialog.c
index 056890b..11e4dd8 100644
--- a/libempathy-gtk/empathy-contact-selector-dialog.c
+++ b/libempathy-gtk/empathy-contact-selector-dialog.c
@@ -448,6 +448,11 @@ empathy_contact_selector_dialog_dispose (GObject *object)
     priv->contact_manager = NULL;
   }
 
+  if (priv->filter_account != NULL) {
+    g_object_unref (priv->filter_account);
+    priv->filter_account = NULL;
+  }
+
   if (G_OBJECT_CLASS (empathy_contact_selector_dialog_parent_class)->dispose)
     G_OBJECT_CLASS (empathy_contact_selector_dialog_parent_class)->dispose (
         object);



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