diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rwxr-xr-x | lib/egg/egg-toolbars-model.c | 1 | ||||
-rw-r--r-- | lib/egg/eggtoolbar.c | 4 |
3 files changed, 12 insertions, 0 deletions
@@ -1,5 +1,12 @@ 2003-08-04 Christian Persch <chpe@cvs.gnome.org> + * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_to_xml): + * lib/egg/eggtoolbar.c: (egg_toolbar_finalize): + + Fix mem leaks. + +2003-08-04 Christian Persch <chpe@cvs.gnome.org> + * lib/widgets/ephy-arrow-toolbutton.c: Correct ref-counting. diff --git a/lib/egg/egg-toolbars-model.c b/lib/egg/egg-toolbars-model.c index e030bd29d..2166ede5f 100755 --- a/lib/egg/egg-toolbars-model.c +++ b/lib/egg/egg-toolbars-model.c @@ -126,6 +126,7 @@ egg_toolbars_model_to_xml (EggToolbarsModel *t) name = egg_toolbars_model_get_item_name (t, item->type, item->id); xmlSetProp (node, "type", item->type); xmlSetProp (node, "name", name); + g_free (name); } } } diff --git a/lib/egg/eggtoolbar.c b/lib/egg/eggtoolbar.c index 547f0e33c..87e3fa592 100644 --- a/lib/egg/eggtoolbar.c +++ b/lib/egg/eggtoolbar.c @@ -494,10 +494,14 @@ static void egg_toolbar_finalize (GObject *object) { EggToolbar *toolbar = EGG_TOOLBAR (object); + EggToolbarPrivate *priv; if (toolbar->tooltips) g_object_unref (GTK_OBJECT (toolbar->tooltips)); + priv = g_object_get_data (object, PRIVATE_KEY); + g_free (priv); + G_OBJECT_CLASS (parent_class)->finalize (object); } |