aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-user-creatable-items-handler.c
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2003-04-16 05:27:08 +0800
committerHans Petter <hansp@src.gnome.org>2003-04-16 05:27:08 +0800
commita693beaab485e44e2c35e0c2a5440c7c4a8760c0 (patch)
tree9c35ba0750a90f6d825c1122a55906a380f6b10c /shell/e-shell-user-creatable-items-handler.c
parent89784ed940d875337fbef17dad1d2332d203587e (diff)
downloadgsoc2013-evolution-a693beaab485e44e2c35e0c2a5440c7c4a8760c0.tar
gsoc2013-evolution-a693beaab485e44e2c35e0c2a5440c7c4a8760c0.tar.gz
gsoc2013-evolution-a693beaab485e44e2c35e0c2a5440c7c4a8760c0.tar.bz2
gsoc2013-evolution-a693beaab485e44e2c35e0c2a5440c7c4a8760c0.tar.lz
gsoc2013-evolution-a693beaab485e44e2c35e0c2a5440c7c4a8760c0.tar.xz
gsoc2013-evolution-a693beaab485e44e2c35e0c2a5440c7c4a8760c0.tar.zst
gsoc2013-evolution-a693beaab485e44e2c35e0c2a5440c7c4a8760c0.zip
Free the temporary string.
2003-04-15 Hans Petter Jansson <hpj@ximian.com> * e-setup.c (e_setup_check_config): Free the temporary string. * e-shell-user-creatable-items-handler.c (append_xml_for_menu_item): Free the icon xml string. * e-shell.c (parse_default_uri): Free the component name, the configuration path and the temporary path. svn path=/trunk/; revision=20849
Diffstat (limited to 'shell/e-shell-user-creatable-items-handler.c')
-rw-r--r--shell/e-shell-user-creatable-items-handler.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/shell/e-shell-user-creatable-items-handler.c b/shell/e-shell-user-creatable-items-handler.c
index ebd5be0911..efc1b24f5f 100644
--- a/shell/e-shell-user-creatable-items-handler.c
+++ b/shell/e-shell-user-creatable-items-handler.c
@@ -307,9 +307,13 @@ append_xml_for_menu_item (GString *xml,
else if (item->shortcut != '\0')
g_string_append_printf (xml, " accel=\"*Control**Shift*%c\"", item->shortcut);
- if (item->icon != NULL)
- g_string_append_printf (xml, " pixtype=\"pixbuf\" pixname=\"%s\"",
- bonobo_ui_util_pixbuf_to_xml (item->icon));
+ if (item->icon != NULL) {
+ char *icon_xml;
+
+ icon_xml = bonobo_ui_util_pixbuf_to_xml (item->icon);
+ g_string_append_printf (xml, " pixtype=\"pixbuf\" pixname=\"%s\"", icon_xml);
+ g_free (icon_xml);
+ }
encoded_tooltip = bonobo_ui_util_encode_str (item->tooltip);
g_string_append_printf (xml, " tip=\"%s\"", encoded_tooltip);