NANCY: Fix memory leak in ResourceManager

This commit is contained in:
Kaloyan Chehlarski 2024-02-10 21:34:41 +01:00
parent 758db1bfb1
commit 01eefffad6

View File

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