aboutsummaryrefslogtreecommitdiffstats
path: root/lib/egg/eggtoolbutton.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/egg/eggtoolbutton.c')
-rw-r--r--lib/egg/eggtoolbutton.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/egg/eggtoolbutton.c b/lib/egg/eggtoolbutton.c
index 6f827e576..4b786db3c 100644
--- a/lib/egg/eggtoolbutton.c
+++ b/lib/egg/eggtoolbutton.c
@@ -513,6 +513,15 @@ egg_tool_button_finalize (GObject *object)
g_free (button->stock_id);
button->stock_id = NULL;
+ g_free (button->label_text);
+ button->label_text = NULL;
+
+ if (button->label_widget)
+ g_object_unref (G_OBJECT (button->label_widget));
+
+ if (button->icon_widget)
+ g_object_unref (G_OBJECT (button->icon_widget));
+
parent_class->finalize (object);
}