Don't leak the menu. (#148110, Tommi Komulainen)

Wed Jul 21 22:35:47 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkcellview.c (gtk_cell_view_finalize): Don't leak the
	menu.  (#148110, Tommi Komulainen)
This commit is contained in:
Matthias Clasen 2004-07-22 02:36:54 +00:00 committed by Matthias Clasen
parent eaadb3ad62
commit 79ace2b389
5 changed files with 25 additions and 4 deletions

View File

@ -1,3 +1,8 @@
Wed Jul 21 22:35:47 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcellview.c (gtk_cell_view_finalize): Don't leak the
menu. (#148110, Tommi Komulainen)
Wed Jul 21 22:24:10 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcellview.c (gtk_cell_view_finalize): Don't leak

View File

@ -1,3 +1,8 @@
Wed Jul 21 22:35:47 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcellview.c (gtk_cell_view_finalize): Don't leak the
menu. (#148110, Tommi Komulainen)
Wed Jul 21 22:24:10 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcellview.c (gtk_cell_view_finalize): Don't leak

View File

@ -1,3 +1,8 @@
Wed Jul 21 22:35:47 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcellview.c (gtk_cell_view_finalize): Don't leak the
menu. (#148110, Tommi Komulainen)
Wed Jul 21 22:24:10 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcellview.c (gtk_cell_view_finalize): Don't leak

View File

@ -1,3 +1,8 @@
Wed Jul 21 22:35:47 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcellview.c (gtk_cell_view_finalize): Don't leak the
menu. (#148110, Tommi Komulainen)
Wed Jul 21 22:24:10 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcellview.c (gtk_cell_view_finalize): Don't leak

View File

@ -4019,7 +4019,11 @@ gtk_combo_box_finalize (GObject *object)
GSList *i;
if (GTK_IS_MENU (combo_box->priv->popup_widget))
gtk_combo_box_menu_destroy (combo_box);
{
gtk_combo_box_menu_destroy (combo_box);
gtk_menu_detach (GTK_MENU (combo_box->priv->popup_widget));
combo_box->priv->popup_widget = NULL;
}
if (GTK_IS_TREE_VIEW (combo_box->priv->tree_view))
gtk_combo_box_list_destroy (combo_box);
@ -4029,9 +4033,6 @@ gtk_combo_box_finalize (GObject *object)
gtk_combo_box_unset_model (combo_box);
if (combo_box->priv->model)
g_object_unref (combo_box->priv->model);
for (i = combo_box->priv->cells; i; i = i->next)
{
ComboCellInfo *info = (ComboCellInfo *)i->data;