mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
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:
parent
1a5a17d629
commit
c6ce9c1564
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user