Mend alloc bug introduced testing 'New colors last'
Didn't mean to stop alloc'ing space for the colors!
This commit is contained in:
parent
5d9ceca076
commit
f3965941aa
1 changed files with 1 additions and 4 deletions
|
|
@ -18682,13 +18682,10 @@ static int do_new_dialog(void)
|
||||||
|
|
||||||
|
|
||||||
/* (Re)allocate space for the information about these files: */
|
/* (Re)allocate space for the information about these files: */
|
||||||
|
|
||||||
tot = num_files_in_dirs;
|
tot = num_files_in_dirs;
|
||||||
|
|
||||||
/* And colors... */
|
/* And colors... */
|
||||||
if (!new_colors_last) {
|
tot += NUM_COLORS;
|
||||||
tot += NUM_COLORS;
|
|
||||||
}
|
|
||||||
|
|
||||||
thumbs = (SDL_Surface * *)malloc(sizeof(SDL_Surface *) * tot);
|
thumbs = (SDL_Surface * *)malloc(sizeof(SDL_Surface *) * tot);
|
||||||
d_places = (int *)malloc(sizeof(int) * tot);
|
d_places = (int *)malloc(sizeof(int) * tot);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue