TOON: Plug memory leak

This commit is contained in:
Eugene Sandulenko 2016-05-31 13:30:16 +02:00
parent 29d6e9a754
commit b53d8104b7

View File

@ -935,10 +935,12 @@ bool ToonEngine::showOptions() {
_gameState->_inMenu = false; _gameState->_inMenu = false;
_firstFrame = true; _firstFrame = true;
_gameState->_currentScrollValue = oldScrollValue; _gameState->_currentScrollValue = oldScrollValue;
restorePalette(); restorePalette();
dirtyAllScreen(); dirtyAllScreen();
delete optionPicture;
return exitGame; return exitGame;
} }