mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-10 12:55:24 +00:00
LILLIPUT: Fix memory leak in displayVGAFile. PVS-Studio V773
This commit is contained in:
parent
a625513a80
commit
933a5a8f71
@ -2616,6 +2616,7 @@ void LilliputEngine::displayVGAFile(Common::String fileName) {
|
||||
memcpy(_mainSurface->getPixels(), buffer, 320*200);
|
||||
_system->copyRectToScreen((byte *)_mainSurface->getPixels(), 320, 0, 0, 320, 200);
|
||||
_system->updateScreen();
|
||||
free(buffer);
|
||||
}
|
||||
|
||||
void LilliputEngine::fixPaletteEntries(uint8 *palette, int num) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user