Modified Patch #1925352: Memory leak fixes

svn-id: r31244
This commit is contained in:
Max Horn 2008-03-26 19:29:33 +00:00
parent afed582280
commit b0c6a12c81
8 changed files with 33 additions and 1 deletions

View file

@ -329,6 +329,10 @@ extern "C" int scummvm_main(int argc, char *argv[]) {
launcherDialog(system);
}
PluginManager::instance().unloadPluginsExcept(NULL);
PluginManager::instance().destroy();
ConfMan.destroy();
delete g_gui.theme();
return 0;
}