HYPNO: fix memory leak of boxes image in boyz

This commit is contained in:
neuromancer 2022-06-13 11:16:29 +02:00
parent 3bb67bbbef
commit 711a00856b

View File

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