aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--lib/egg/egg-menu-merge.c1
-rw-r--r--lib/egg/egg-menu-merge.h2
3 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 62687008a..2b6df1cd0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-07-11 Christian Persch <chpe@cvs.gnome.org>
+
+ * lib/egg/egg-menu-merge.h:
+ * lib/egg/egg-menu-merge.c: (update_node):
+
+ Fix mem leak.
+
2003-07-11 David Bordoley <bordoley@msu.edu>
* lib/widgets/ephy-autocompletion-window.c:
diff --git a/lib/egg/egg-menu-merge.c b/lib/egg/egg-menu-merge.c
index 03f5686f0..f9e53594b 100644
--- a/lib/egg/egg-menu-merge.c
+++ b/lib/egg/egg-menu-merge.c
@@ -1263,6 +1263,7 @@ update_node (EggMenuMerge *self, GNode *node)
NODE_INFO(node)->type == EGG_MENU_MERGE_TOOLBAR_PLACEHOLDER) &&
NODE_INFO(node)->extra)
gtk_widget_destroy(NODE_INFO(node)->extra);
+ g_free (NODE_INFO(node)->name);
g_chunk_free(NODE_INFO(node), merge_node_chunk);
g_node_destroy(node);
}
diff --git a/lib/egg/egg-menu-merge.h b/lib/egg/egg-menu-merge.h
index 842663b58..6607b0ff3 100644
--- a/lib/egg/egg-menu-merge.h
+++ b/lib/egg/egg-menu-merge.h
@@ -55,7 +55,7 @@ struct _EggMenuMergeClass {
struct _EggMenuMergeNode {
EggMenuMergeNodeType type;
- const gchar *name;
+ gchar *name;
GQuark action_name;
EggAction *action;