mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-04 16:26:53 +00:00
HYPNO: fix memory leak of boxes image in boyz
This commit is contained in:
parent
3bb67bbbef
commit
711a00856b
@ -303,6 +303,8 @@ bool BoyzEngine::checkTransition(ArcadeTransitions &transitions, ArcadeShooting
|
||||
Graphics::Surface *boxes = frame->convertTo(frame->format, _background->decoder->getPalette());
|
||||
drawImage(*boxes, 0, 0, false);
|
||||
drawScreen();
|
||||
boxes->free();
|
||||
delete boxes;
|
||||
_selectedCorrectBox = pickABox();
|
||||
if (_selectedCorrectBox == 1) {
|
||||
_background->decoder->forceSeekToFrame(582);
|
||||
|
Loading…
Reference in New Issue
Block a user