LAB: Avoid to delete _screenImage->_imageData, which causes a crash
This commit is contained in:
parent
26c48305b5
commit
02b606e375
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue