Fix leaks of label_text, label_widget and icon_widget. (#117312, Christian

Sun Jul 13 15:57:57 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktoolbutton.c (gtk_tool_button_finalize): Fix leaks of
	label_text, label_widget and icon_widget. (#117312,
	Christian Persch)
This commit is contained in:
Soeren Sandmann 2003-07-13 19:29:54 +00:00 committed by Søren Sandmann Pedersen
parent 1a5a17d629
commit c6ce9c1564
6 changed files with 41 additions and 2 deletions

View File

@ -1,3 +1,9 @@
Sun Jul 13 15:57:57 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtktoolbutton.c (gtk_tool_button_finalize): Fix leaks of
label_text, label_widget and icon_widget. (#117312,
Christian Persch)
Sun Jul 13 01:37:51 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkmenu.c (gtk_menu_class_init): new properties

View File

@ -1,3 +1,9 @@
Sun Jul 13 15:57:57 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtktoolbutton.c (gtk_tool_button_finalize): Fix leaks of
label_text, label_widget and icon_widget. (#117312,
Christian Persch)
Sun Jul 13 01:37:51 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkmenu.c (gtk_menu_class_init): new properties

View File

@ -1,3 +1,9 @@
Sun Jul 13 15:57:57 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtktoolbutton.c (gtk_tool_button_finalize): Fix leaks of
label_text, label_widget and icon_widget. (#117312,
Christian Persch)
Sun Jul 13 01:37:51 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkmenu.c (gtk_menu_class_init): new properties

View File

@ -1,3 +1,9 @@
Sun Jul 13 15:57:57 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtktoolbutton.c (gtk_tool_button_finalize): Fix leaks of
label_text, label_widget and icon_widget. (#117312,
Christian Persch)
Sun Jul 13 01:37:51 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkmenu.c (gtk_menu_class_init): new properties

View File

@ -1,3 +1,9 @@
Sun Jul 13 15:57:57 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtktoolbutton.c (gtk_tool_button_finalize): Fix leaks of
label_text, label_widget and icon_widget. (#117312,
Christian Persch)
Sun Jul 13 01:37:51 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkmenu.c (gtk_menu_class_init): new properties

View File

@ -501,8 +501,17 @@ gtk_tool_button_finalize (GObject *object)
{
GtkToolButton *button = GTK_TOOL_BUTTON (object);
g_free (button->priv->stock_id);
button->priv->stock_id = NULL;
if (button->priv->stock_id)
g_free (button->priv->stock_id);
if (button->priv->label_text)
g_free (button->priv->label_text);
if (button->priv->label_widget)
g_object_unref (G_OBJECT (button->priv->label_widget));
if (button->priv->icon_widget)
g_object_unref (G_OBJECT (button->priv->icon_widget));
parent_class->finalize (object);
}