diff options
Diffstat (limited to 'gui/ThemeEngine.cpp')
-rw-r--r-- | gui/ThemeEngine.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp index 9ddf23549d..3b6791d281 100644 --- a/gui/ThemeEngine.cpp +++ b/gui/ThemeEngine.cpp @@ -195,7 +195,7 @@ void ThemeEngine::unloadTheme() { } } _bitmaps.clear(); - + delete _themeArchive; _themeArchive = 0; @@ -395,7 +395,7 @@ bool ThemeEngine::addBitmap(const Common::String &filename) { surf->free(); delete surf; } - + // Now try to load the bitmap via the ImageDecoder class. surf = Graphics::ImageDecoder::loadFile(filename); if (!surf && _themeArchive) { @@ -408,7 +408,7 @@ bool ThemeEngine::addBitmap(const Common::String &filename) { // Store the surface into our hashmap (attention, may store NULL entries!) _bitmaps[filename] = surf; - + return surf != 0; } |