diff --git a/src/sdl/i_system.c b/src/sdl/i_system.c index e86a39ca..dd42119a 100644 --- a/src/sdl/i_system.c +++ b/src/sdl/i_system.c @@ -2132,6 +2132,7 @@ void I_Quit(void) printf("\r"); ShowEndTxt(); } + free(myargv); // Deallocate allocated memory death: W_Shutdown(); exit(0); diff --git a/src/sdl12/i_system.c b/src/sdl12/i_system.c index ed0db653..2be6b55f 100644 --- a/src/sdl12/i_system.c +++ b/src/sdl12/i_system.c @@ -2301,6 +2301,7 @@ void I_Quit(void) printf("\r"); ShowEndTxt(); } + free(myargv); // Deallocate allocated memory death: W_Shutdown(); #ifdef GP2X diff --git a/src/win32/win_sys.c b/src/win32/win_sys.c index 316da61d..110eafb7 100644 --- a/src/win32/win_sys.c +++ b/src/win32/win_sys.c @@ -771,6 +771,7 @@ void I_Quit(void) ShowEndTxt(co); } fflush(stderr); + free(myargv); // Deallocate allocated memory W_Shutdown(); exit(0); }