]> git.0d.be Git - empathy.git/commitdiff
contact-search-dialog: fix GtkSizeGroup leak
authorPavel Vasin <rat4vier@gmail.com>
Sun, 7 Oct 2012 09:36:23 +0000 (13:36 +0400)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 8 Oct 2012 07:55:59 +0000 (09:55 +0200)
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

index d1fd0cfb05c33c1c8fcbf89fa6d7a726383bbdba..0a189b3e184c49691ec81bb62e13ac32936b7a64 100644 (file)
@@ -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 *