aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-07-22 19:07:16 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-07-22 19:07:16 +0800
commit5066a41b567933af2d2e14fcc212d32e620494dd (patch)
tree4252e70b2351ce6e9937ad67a4e023ad9abe7d21 /lib
parent636ab900c0cd1f0bc0842d53ff26bb735dfb86ff (diff)
downloadgsoc2013-epiphany-5066a41b567933af2d2e14fcc212d32e620494dd.tar
gsoc2013-epiphany-5066a41b567933af2d2e14fcc212d32e620494dd.tar.gz
gsoc2013-epiphany-5066a41b567933af2d2e14fcc212d32e620494dd.tar.bz2
gsoc2013-epiphany-5066a41b567933af2d2e14fcc212d32e620494dd.tar.lz
gsoc2013-epiphany-5066a41b567933af2d2e14fcc212d32e620494dd.tar.xz
gsoc2013-epiphany-5066a41b567933af2d2e14fcc212d32e620494dd.tar.zst
gsoc2013-epiphany-5066a41b567933af2d2e14fcc212d32e620494dd.zip
Fix mem leak.
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.
Diffstat (limited to 'lib')
-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;