[empathy] contact-search-dialog: fix GtkSizeGroup leak



commit b46b9e3ec8dd67359b1e1b2b20678f6c322d41b3
Author: Pavel Vasin <rat4vier gmail com>
Date:   Sun Oct 7 13:36:23 2012 +0400

    contact-search-dialog: fix GtkSizeGroup leak
    
    GtkSizeGroup objects are referenced by each widget in the size group,
    so once you have added all widgets to a GtkSizeGroup, you can drop the
    initial reference to the size group with g_object_unref().
    
    https://bugzilla.gnome.org/show_bug.cgi?id=685652

 libempathy-gtk/empathy-contact-search-dialog.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-contact-search-dialog.c b/libempathy-gtk/empathy-contact-search-dialog.c
index d1fd0cf..0a189b3 100644
--- a/libempathy-gtk/empathy-contact-search-dialog.c
+++ b/libempathy-gtk/empathy-contact-search-dialog.c
@@ -669,6 +669,7 @@ empathy_contact_search_dialog_init (EmpathyContactSearchDialog *self)
   gtk_window_set_default_size (GTK_WINDOW (self), 200, 400);
   gtk_widget_show_all (vbox);
   gtk_widget_hide (priv->spinner);
+  g_object_unref (size_group);
 }
 
 GtkWidget *



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