diff options
Diffstat (limited to 'engines/sword25')
-rw-r--r-- | engines/sword25/sword25.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/sword25/sword25.cpp b/engines/sword25/sword25.cpp index 772c50ae01..cf33f8f56e 100644 --- a/engines/sword25/sword25.cpp +++ b/engines/sword25/sword25.cpp @@ -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(); |