From 0ab26eaa6ed5b7234acc05b8309777df1559ce01 Mon Sep 17 00:00:00 2001 From: dimok321 <15055714+dimok789@users.noreply.github.com> Date: Wed, 20 Jan 2010 18:33:30 +0000 Subject: [PATCH] *Memoryleak fix --- source/menu.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/menu.cpp b/source/menu.cpp index a9945a98..74025b74 100644 --- a/source/menu.cpp +++ b/source/menu.cpp @@ -326,6 +326,8 @@ int MainMenu(int menu) { CloseXMLDatabase(); 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. ResumeGui(); ExitGUIThreads();