BASE: Destroy singletons on exit.

This commit is contained in:
Alyssa Milburn 2012-03-28 19:16:29 +02:00
parent b01d712a63
commit 6bff611605

View File

@ -55,6 +55,9 @@
#include "audio/mididrv.h"
#include "audio/musicplugin.h" /* for music manager */
#include "graphics/cursorman.h"
#include "graphics/fontman.h"
#include "backends/keymapper/keymapper.h"
#if defined(_WIN32_WCE)
@ -493,10 +496,15 @@ extern "C" int scummvm_main(int argc, const char * const argv[]) {
PluginManager::destroy();
GUI::GuiManager::destroy();
Common::ConfigManager::destroy();
Common::DebugManager::destroy();
Common::EventRecorder::destroy();
Common::SearchManager::destroy();
#ifdef USE_TRANSLATION
Common::TranslationManager::destroy();
#endif
MusicManager::destroy();
Graphics::CursorManager::destroy();
Graphics::FontManager::destroy();
return 0;
}