mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-30 12:50:51 +00:00
NANCY: Fix memory leak in ResourceManager
This commit is contained in:
parent
758db1bfb1
commit
01eefffad6
@ -171,6 +171,7 @@ bool ResourceManager::loadImage(const Common::Path &name, Graphics::ManagedSurfa
|
||||
|
||||
GraphicsManager::copyToManaged(buf, surf, info.width, info.height, g_nancy->_graphics->getInputPixelFormat());
|
||||
delete[] buf;
|
||||
delete stream;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user