aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/sword25.cpp
diff options
context:
space:
mode:
authorMax Horn2010-10-24 01:30:53 +0000
committerMax Horn2010-10-24 01:30:53 +0000
commit85e3ddc30987ce0331d68157362322e4a7b00f83 (patch)
treecf7b75f0be7d3cd21d8b3d34465f35c67b50d64e /engines/sword25/sword25.cpp
parent2da4469686ed5336174f990605f8626dd4b46f53 (diff)
downloadscummvm-rg350-85e3ddc30987ce0331d68157362322e4a7b00f83.tar.gz
scummvm-rg350-85e3ddc30987ce0331d68157362322e4a7b00f83.tar.bz2
scummvm-rg350-85e3ddc30987ce0331d68157362322e4a7b00f83.zip
SWORD25: Add ImageLoaderManager, get rid of last globally constructed object
This also gets rid of an evil use of atexit. svn-id: r53753
Diffstat (limited to 'engines/sword25/sword25.cpp')
-rw-r--r--engines/sword25/sword25.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sword25/sword25.cpp b/engines/sword25/sword25.cpp
index 9f3c963013..8624d14f4c 100644
--- a/engines/sword25/sword25.cpp
+++ b/engines/sword25/sword25.cpp
@@ -45,6 +45,7 @@
#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
+#include "sword25/gfx/image/imageloader.h" // Needed so we can destroy the singleton
namespace Sword25 {
@@ -137,6 +138,7 @@ bool Sword25Engine::appEnd() {
// The kernel is shutdown, and un-initialises all subsystems
Kernel::deleteInstance();
+ ImageLoaderManager::destroy();
AnimationTemplateRegistry::destroy();
RenderObjectRegistry::destroy();
RegionRegistry::destroy();