aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog10
-rw-r--r--lib/egg/eggtoolbar.c14
2 files changed, 24 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 0007379c8..7f5ac3522 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2003-07-22 Christian Persch <chpe@cvs.gnome.org>
+
+ * lib/egg/eggtoolbar.c: (egg_toolbar_finalize):
+
+ Fix mem leak.
+
+ * lib/egg/eggtoolbutton.c: (egg_tool_button_finalize):
+
+ Fix mem leaks. Backported patch from gtk, bug #117312.
+
2003-07-22 Marco Pesenti Gritti <marco@it.gnome.org>
* src/bookmarks/ephy-topic-action.c: (sort_bookmarks),
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;