mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
GUI: Fix memory leak
This commit is contained in:
parent
5e2032e754
commit
8fe33fdb55
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user