From 85e3ddc30987ce0331d68157362322e4a7b00f83 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 24 Oct 2010 01:30:53 +0000 Subject: SWORD25: Add ImageLoaderManager, get rid of last globally constructed object This also gets rid of an evil use of atexit. svn-id: r53753 --- engines/sword25/sword25.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines/sword25/sword25.cpp') 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(); -- cgit v1.2.3