Deallocate when I_Quit() is called instead.

This commit is contained in:
Steel Titanium 2018-06-23 15:09:11 -04:00
parent 7f11010b42
commit 5c8c35e773
3 changed files with 3 additions and 0 deletions

View File

@ -2132,6 +2132,7 @@ void I_Quit(void)
printf("\r"); printf("\r");
ShowEndTxt(); ShowEndTxt();
} }
free(myargv); // Deallocate allocated memory
death: death:
W_Shutdown(); W_Shutdown();
exit(0); exit(0);

View File

@ -2301,6 +2301,7 @@ void I_Quit(void)
printf("\r"); printf("\r");
ShowEndTxt(); ShowEndTxt();
} }
free(myargv); // Deallocate allocated memory
death: death:
W_Shutdown(); W_Shutdown();
#ifdef GP2X #ifdef GP2X

View File

@ -771,6 +771,7 @@ void I_Quit(void)
ShowEndTxt(co); ShowEndTxt(co);
} }
fflush(stderr); fflush(stderr);
free(myargv); // Deallocate allocated memory
W_Shutdown(); W_Shutdown();
exit(0); exit(0);
} }