Commit c6ce9c15 authored by Soeren Sandmann's avatar Soeren Sandmann Committed by Søren Sandmann Pedersen

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)
parent 1a5a17d6
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
......
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
......
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
......
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
......
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
......
......@@ -501,9 +501,18 @@ 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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment