Fixed little memory issue while playing movies introduced by overhaul of window closing
This commit is contained in:
parent
753178a30f
commit
0c0a55e65b
|
@ -3,6 +3,7 @@ D2X-Rebirth Changelog
|
||||||
20110209
|
20110209
|
||||||
--------
|
--------
|
||||||
main/ai.c, main/game.c, main/gamecntl.c, main/gameseq.c, main/menu.c, main/multi.c, main/multi.h, main/state.c, main/state.h: Reintroduced Savegames for Coop games using the original Descent2 implementation but correctly handling player slots in their pre-loading state preventing accidential player shifting which never really worked in the original game and we do not want with UDP anyways - was all tested but still might need a fix or two; Added some missing initializations for saving players and AI stuff; Completely ripped out remnants of saving between levels code
|
main/ai.c, main/game.c, main/gamecntl.c, main/gameseq.c, main/menu.c, main/multi.c, main/multi.h, main/state.c, main/state.h: Reintroduced Savegames for Coop games using the original Descent2 implementation but correctly handling player slots in their pre-loading state preventing accidential player shifting which never really worked in the original game and we do not want with UDP anyways - was all tested but still might need a fix or two; Added some missing initializations for saving players and AI stuff; Completely ripped out remnants of saving between levels code
|
||||||
|
main/movie.c: Fixed little memory issue while playing movies introduced by overhaul of window closing
|
||||||
|
|
||||||
20110206
|
20110206
|
||||||
--------
|
--------
|
||||||
|
|
|
@ -394,6 +394,7 @@ int RunMovie(char *filename, int hires_flag, int must_have,int dx,int dy)
|
||||||
if (must_have)
|
if (must_have)
|
||||||
con_printf(CON_URGENT, "Can't open movie <%s>: %s\n", filename, PHYSFS_getLastError());
|
con_printf(CON_URGENT, "Can't open movie <%s>: %s\n", filename, PHYSFS_getLastError());
|
||||||
window_close(wind);
|
window_close(wind);
|
||||||
|
window_do_close(wind);
|
||||||
if (reshow)
|
if (reshow)
|
||||||
show_menus();
|
show_menus();
|
||||||
d_free(m);
|
d_free(m);
|
||||||
|
@ -418,6 +419,7 @@ int RunMovie(char *filename, int hires_flag, int must_have,int dx,int dy)
|
||||||
Int3();
|
Int3();
|
||||||
SDL_FreeRW(filehndl);
|
SDL_FreeRW(filehndl);
|
||||||
window_close(wind);
|
window_close(wind);
|
||||||
|
window_do_close(wind);
|
||||||
if (reshow)
|
if (reshow)
|
||||||
show_menus();
|
show_menus();
|
||||||
d_free(m);
|
d_free(m);
|
||||||
|
|
Loading…
Reference in a new issue