*Memoryleak fix

This commit is contained in:
dimok321 2010-01-20 18:33:30 +00:00
parent 4284109116
commit 0ab26eaa6e

View File

@ -326,6 +326,8 @@ int MainMenu(int menu) {
CloseXMLDatabase(); CloseXMLDatabase();
NewTitles::DestroyInstance(); NewTitles::DestroyInstance();
CFG_Cleanup();
if (strcmp(headlessID,"")!=0)//the GUIthread was never started, so it cant be ended and joined properly if headless mode was used. so we resume it and close it. if (strcmp(headlessID,"")!=0)//the GUIthread was never started, so it cant be ended and joined properly if headless mode was used. so we resume it and close it.
ResumeGui(); ResumeGui();
ExitGUIThreads(); ExitGUIThreads();