Fix memory leak where a free was forgotten

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16057 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2007-05-06 21:27:09 +00:00
parent f2feb3016e
commit 8a9bc55475

View File

@ -1417,6 +1417,7 @@ gnc_main_window_update_menu_item (GncMainWindow *window)
/* Figure out the label name. Add the accelerator if possible. */
title = gnc_main_window_generate_title(window);
strings = g_strsplit(title, "_", 0);
g_free(title);
expanded = g_strjoinv("__", strings);
if (index < 10) {
data.label = g_strdup_printf("_%d %s", (index + 1) % 10, expanded);