aboutsummaryrefslogtreecommitdiffstats
path: root/lib/egg/eggtoolbar.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/egg/eggtoolbar.c')
-rw-r--r--lib/egg/eggtoolbar.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/egg/eggtoolbar.c b/lib/egg/eggtoolbar.c
index ed4189aae..bae64f324 100644
--- a/lib/egg/eggtoolbar.c
+++ b/lib/egg/eggtoolbar.c
@@ -82,6 +82,7 @@ enum {
};
static void egg_toolbar_init (EggToolbar *toolbar);
+static void egg_toolbar_finalize (GObject *object);
static void egg_toolbar_class_init (EggToolbarClass *klass);
static void egg_toolbar_set_property (GObject *object,
@@ -283,6 +284,7 @@ egg_toolbar_class_init (EggToolbarClass *klass)
gobject_class->set_property = egg_toolbar_set_property;
gobject_class->get_property = egg_toolbar_get_property;
+ gobject_class->finalize = egg_toolbar_finalize;
widget_class->button_press_event = egg_toolbar_button_press;
widget_class->expose_event = egg_toolbar_expose;
@@ -489,6 +491,18 @@ egg_toolbar_class_init (EggToolbarClass *klass)
}
static void
+egg_toolbar_finalize (GObject *object)
+{
+ EggToolbar *toolbar = EGG_TOOLBAR (object);
+ GList *list;
+
+ if (toolbar->tooltips)
+ g_object_unref (GTK_OBJECT (toolbar->tooltips));
+
+ G_OBJECT_CLASS (parent_class)->finalize (object);
+}
+
+static void
egg_toolbar_init (EggToolbar *toolbar)
{
EggToolbarPrivate *priv;