diff --git a/ChangeLog b/ChangeLog index 8aba26bd61..4528e5b079 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-08-21 Michael Natterer + + * app/gui/menus.c (menus_last_opened_add): don't g_free() static + strings (happened if gimprc.last_opened_size > 9, fixes #85795). + 2002-08-21 Michael Natterer * app/core/gimpimage-mask-select.c: call gimp_image_mask_changed() diff --git a/app/gui/menus.c b/app/gui/menus.c index 9d3cdd52f5..990057979d 100644 --- a/app/gui/menus.c +++ b/app/gui/menus.c @@ -2544,7 +2544,9 @@ menus_last_opened_add (GimpItemFactory *item_factory, for (i = 0; i < gimprc.last_opened_size; i++) { g_free (last_opened_entries[i].entry.path); - g_free (last_opened_entries[i].entry.accelerator); + + if (i < 9) + g_free (last_opened_entries[i].entry.accelerator); } g_free (last_opened_entries); diff --git a/app/menus/menus.c b/app/menus/menus.c index 9d3cdd52f5..990057979d 100644 --- a/app/menus/menus.c +++ b/app/menus/menus.c @@ -2544,7 +2544,9 @@ menus_last_opened_add (GimpItemFactory *item_factory, for (i = 0; i < gimprc.last_opened_size; i++) { g_free (last_opened_entries[i].entry.path); - g_free (last_opened_entries[i].entry.accelerator); + + if (i < 9) + g_free (last_opened_entries[i].entry.accelerator); } g_free (last_opened_entries);