mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
SWORD25: Destroy singletons upon engine exit (untested, may lead to crash upon exit)
svn-id: r53609
This commit is contained in:
parent
d6b7ebab16
commit
8f5eee67db
@ -42,6 +42,10 @@
|
||||
#include "sword25/package/packagemanager.h"
|
||||
#include "sword25/script/script.h"
|
||||
|
||||
#include "sword25/gfx/animationtemplateregistry.h" // Needed so we can destroy the singleton
|
||||
#include "sword25/gfx/renderobjectregistry.h" // Needed so we can destroy the singleton
|
||||
#include "sword25/math/regionregistry.h" // Needed so we can destroy the singleton
|
||||
|
||||
namespace Sword25 {
|
||||
|
||||
#define BS_LOG_PREFIX "MAIN"
|
||||
@ -140,6 +144,10 @@ bool Sword25Engine::appEnd() {
|
||||
// The kernel is shutdown, and un-initialises all subsystems
|
||||
Kernel::DeleteInstance();
|
||||
|
||||
AnimationTemplateRegistry::destroy();
|
||||
RenderObjectRegistry::destroy();
|
||||
RegionRegistry::destroy();
|
||||
|
||||
// Free the log file if it was used
|
||||
BS_Log::_CloseLog();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user