LAB: Avoid to delete _screenImage->_imageData, which causes a crash

This commit is contained in:
Strangerke 2015-12-22 00:29:45 +01:00 committed by Willem Jan Palenstijn
parent 26c48305b5
commit 02b606e375

View file

@ -152,6 +152,9 @@ LabEngine::~LabEngine() {
delete _tilePuzzle;
delete _utils;
delete _journalBackImage;
// _screenImage->_imageData is always pointing to the current drawing buffer.
// It shouldn't be deleted there.
_screenImage->_imageData = nullptr;
delete _screenImage;
}