From 5d9f8f7e140bb2be9abf7a5906a0930cb239133b Mon Sep 17 00:00:00 2001 From: Crispin Flowerday Date: Mon, 23 Jan 2006 22:44:10 +0000 Subject: Fix a couple of memory leaks 2006-01-23 Crispin Flowerday * src/bookmarks/ephy-open-tabs-action.c: (node_added_cb): * src/bookmarks/ephy-topic-action-group.c: (node_added_cb): Fix a couple of memory leaks --- ChangeLog | 7 +++++++ src/bookmarks/ephy-open-tabs-action.c | 1 + src/bookmarks/ephy-topic-action-group.c | 1 + 3 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8759cd6ea..c207ac430 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-01-23 Crispin Flowerday + + * src/bookmarks/ephy-open-tabs-action.c: (node_added_cb): + * src/bookmarks/ephy-topic-action-group.c: (node_added_cb): + + Fix a couple of memory leaks + 2006-01-23 Christian Persch * src/ephy-main.c: diff --git a/src/bookmarks/ephy-open-tabs-action.c b/src/bookmarks/ephy-open-tabs-action.c index 482ec84d1..3a06f6a57 100644 --- a/src/bookmarks/ephy-open-tabs-action.c +++ b/src/bookmarks/ephy-open-tabs-action.c @@ -77,6 +77,7 @@ node_added_cb (EphyNode *parent, EphyNode *child, GObject *object) gtk_action_group_add_action (actions, action); g_object_unref (action); g_free (accel); + g_free (name); } static void diff --git a/src/bookmarks/ephy-topic-action-group.c b/src/bookmarks/ephy-topic-action-group.c index c7ecd7105..28bd8d458 100644 --- a/src/bookmarks/ephy-topic-action-group.c +++ b/src/bookmarks/ephy-topic-action-group.c @@ -70,6 +70,7 @@ node_added_cb (EphyNode *parent, gtk_action_group_add_action (actions, action); g_object_unref (action); g_free (accel); + g_free (name); ephy_topic_action_updated (EPHY_TOPIC_ACTION (action)); } -- cgit v1.2.3