LILLIPUT: Fix memory leak in displayVGAFile. PVS-Studio V773

This commit is contained in:
sluicebox 2023-11-22 23:20:09 -08:00
parent a625513a80
commit 933a5a8f71

View File

@ -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) {