From b41c7d4055c7ca0a29687b3de31db77b9f115133 Mon Sep 17 00:00:00 2001 From: Miciah Dashiel Butler Masters Date: Thu, 15 Jun 2006 20:37:20 +0000 Subject: [PATCH] MIME: fix crash with empty File extensions menu Delete the FREE_LIST flag from mi_no_ext so that free_menu_items doesn't try to free static memory. This fixes a crash reproducible by deleting every entry under Setup -> File extensions, opening said menu, and then closing said menu. --- src/mime/dialogs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mime/dialogs.c b/src/mime/dialogs.c index efbb93dd..fc90cc26 100644 --- a/src/mime/dialogs.c +++ b/src/mime/dialogs.c @@ -138,7 +138,7 @@ menu_add_ext(struct terminal *term, void *fcp, void *xxx2) static struct menu_item mi_no_ext[] = { - INIT_MENU_ITEM(N_("No extensions"), NULL, ACT_MAIN_NONE, NULL, NULL, FREE_LIST | NO_SELECT), + INIT_MENU_ITEM(N_("No extensions"), NULL, ACT_MAIN_NONE, NULL, NULL, NO_SELECT), NULL_MENU_ITEM };