diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp index f3ca81e9ac7..8fec778409b 100644 --- a/gui/ThemeEngine.cpp +++ b/gui/ThemeEngine.cpp @@ -663,6 +663,7 @@ bool ThemeEngine::addBitmap(const Common::String &filename, const Common::String Common::SeekableReadStream *stream = (*i)->createReadStream(); if (stream) { image = new Graphics::SVGBitmap(stream); + delete stream; break; } }