GUI: Fix memory leak

This commit is contained in:
Torbjörn Andersson 2021-11-15 09:32:36 +01:00
parent 5e2032e754
commit 8fe33fdb55

View File

@ -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;
}
}