mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
f2feb3016e
commit
8a9bc55475
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user