Merge pull request #46 from atlaua/master
Urgent bugfix, confirm_ui() should not free msg.
This commit is contained in:
commit
f369d41591
@ -1104,8 +1104,6 @@ int confirm_ui(pixel *vid_buf, char *top, char *msg, char *btn)
|
||||
break;
|
||||
}
|
||||
|
||||
free(msg);
|
||||
|
||||
while (!sdl_poll())
|
||||
{
|
||||
b = SDL_GetMouseState(&mx, &my);
|
||||
@ -5569,6 +5567,8 @@ int save_filename_ui(pixel *vid_buf)
|
||||
}
|
||||
fclose(f);
|
||||
|
||||
free(filename);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user