From 2bdc641a5c98b92f8baf3f5f31223dc1b3740701 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Thu, 21 Sep 2006 17:45:02 -0700 Subject: [PATCH] If a later "menu background" overrides an earlier one, free the data --- com32/modules/readconfig.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/com32/modules/readconfig.c b/com32/modules/readconfig.c index fb9c3d6..7935190 100644 --- a/com32/modules/readconfig.c +++ b/com32/modules/readconfig.c @@ -405,6 +405,8 @@ static void parse_config_file(FILE *f) } } else if ( (ep = looking_at(p, "background")) ) { p = skipspace(ep); + if (menu_background) + free(menu_background); menu_background = dup_word(&p); } else if ((ep = looking_at(p, "color")) || (ep = looking_at(p, "colour"))) { -- 2.7.4