aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/menus/gal-view-menus.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-04-13 01:51:20 +0800
committerDan Winship <danw@src.gnome.org>2001-04-13 01:51:20 +0800
commitabad71776b6be0dbca14af99a7f5af07f639c78a (patch)
tree3a2c4c63cb83ed7fcb56cb53cd7ca377ab20f7c9 /widgets/menus/gal-view-menus.c
parent09d998c3583e0b15e6efe4ce8af57aee5f5d98c4 (diff)
downloadgsoc2013-evolution-abad71776b6be0dbca14af99a7f5af07f639c78a.tar
gsoc2013-evolution-abad71776b6be0dbca14af99a7f5af07f639c78a.tar.gz
gsoc2013-evolution-abad71776b6be0dbca14af99a7f5af07f639c78a.tar.bz2
gsoc2013-evolution-abad71776b6be0dbca14af99a7f5af07f639c78a.tar.lz
gsoc2013-evolution-abad71776b6be0dbca14af99a7f5af07f639c78a.tar.xz
gsoc2013-evolution-abad71776b6be0dbca14af99a7f5af07f639c78a.tar.zst
gsoc2013-evolution-abad71776b6be0dbca14af99a7f5af07f639c78a.zip
Fix a memory leak.
* menus/gal-view-menus.c (build_menus): Fix a memory leak. svn path=/trunk/; revision=9275
Diffstat (limited to 'widgets/menus/gal-view-menus.c')
-rw-r--r--widgets/menus/gal-view-menus.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/widgets/menus/gal-view-menus.c b/widgets/menus/gal-view-menus.c
index 01fbdc3b51..7f97b71531 100644
--- a/widgets/menus/gal-view-menus.c
+++ b/widgets/menus/gal-view-menus.c
@@ -161,8 +161,7 @@ build_menus(GalViewMenus *menus)
int length;
int i;
GalViewCollection *collection = menus->priv->collection;
-
-
+ char *label;
root = bonobo_ui_node_new("Root");
menu = bonobo_ui_node_new_child(root, "menu");
@@ -194,8 +193,9 @@ build_menus(GalViewMenus *menus)
menuitem = bonobo_ui_node_new_child(submenu, "menuitem");
bonobo_ui_node_set_attr(menuitem, "name", "DefineViews");
- bonobo_ui_node_set_attr(menuitem, "_label",
- e_utf8_from_locale_string(_("Define Views")));
+ label = e_utf8_from_locale_string(_("Define Views"));
+ bonobo_ui_node_set_attr(menuitem, "_label", label);
+ g_free (label);
bonobo_ui_node_set_attr(menuitem, "verb", "DefineViews");
string = bonobo_ui_node_to_string(root, TRUE);