fixed a few memory leaks

This commit is contained in:
Christoph Oelckers 2024-10-05 10:22:05 +02:00
commit f0676cdf01
6 changed files with 15 additions and 2 deletions

View file

@ -161,6 +161,7 @@ bool M_SetSpecialMenu(FName& menu, int param); // game specific checks
const FIWADInfo *D_FindIWAD(TArray<FString> &wadfiles, const char *iwad, const char *basewad);
void InitWidgetResources(const char* basewad);
void CloseWidgetResources();
// PUBLIC FUNCTION PROTOTYPES ----------------------------------------------
@ -3844,6 +3845,7 @@ int GameMain()
M_SaveDefaultsFinal();
DeleteStartupScreen();
C_UninitCVars(); // must come last so that nothing will access the CVARs anymore after deletion.
CloseWidgetResources();
delete Args;
Args = nullptr;
return ret;