Fix memory leak when adding basic color menucolors

This commit is contained in:
Pasi Kallinen
2020-10-30 23:01:50 +02:00
parent 7086427aaa
commit 05263bc276

View File

@@ -6579,7 +6579,7 @@ boolean load_colors;
if (c == CLR_BLACK || c == CLR_WHITE || c == NO_COLOR) if (c == CLR_BLACK || c == CLR_WHITE || c == NO_COLOR)
continue; /* skip these */ continue; /* skip these */
Sprintf(cnm, patternfmt, colornames[i].name); Sprintf(cnm, patternfmt, colornames[i].name);
add_menu_coloring_parsed(dupstr(cnm), c, ATR_NONE); add_menu_coloring_parsed(cnm, c, ATR_NONE);
} }
/* right now, menu_colorings contains the alternate color list; /* right now, menu_colorings contains the alternate color list;