don't g_free() static strings (happened if gimprc.last_opened_size > 9,

2002-08-21  Michael Natterer  <mitch@gimp.org>

	* app/gui/menus.c (menus_last_opened_add): don't g_free() static
	strings (happened if gimprc.last_opened_size > 9, fixes #85795).
This commit is contained in:
Michael Natterer 2002-08-21 15:58:50 +00:00 committed by Michael Natterer
parent 5103c495fb
commit 728778ca32
3 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-08-21 Michael Natterer <mitch@gimp.org>
* 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 <mitch@gimp.org>
* app/core/gimpimage-mask-select.c: call gimp_image_mask_changed()

View File

@ -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);

View File

@ -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);