mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 22:28:10 +00:00
LAB: Prevent the Image destructor from deleting the drawing buffer
This commit is contained in:
parent
7a7a25c91d
commit
6f6c92d470
@ -853,7 +853,10 @@ void DisplayMan::doTransWipe(CloseDataPtr *closePtrList, const Common::String fi
|
||||
} // for i
|
||||
} // for j
|
||||
|
||||
delete[] bitMapBuffer;
|
||||
// Prevent the Image destructor from deleting the drawing buffer
|
||||
imDest._imageData = nullptr;
|
||||
|
||||
// bitMapBuffer will be deleted by the Image destructor
|
||||
}
|
||||
|
||||
void DisplayMan::doTransition(TransitionType transitionType, CloseDataPtr *closePtrList, const Common::String filename) {
|
||||
|
@ -327,6 +327,9 @@ void TilePuzzle::changeCombination(uint16 number) {
|
||||
_numberImages[combnum]->blitBitmap(0, (_numberImages[combnum])->_height - (2 * i), &(display), _vm->_utils->vgaScaleX(COMBINATION_X[number]), _vm->_utils->vgaScaleY(65), (_numberImages[combnum])->_width, 2, false);
|
||||
}
|
||||
|
||||
// Prevent the Image destructor from deleting the display buffer
|
||||
display._imageData = nullptr;
|
||||
|
||||
delete[] buffer;
|
||||
|
||||
bool unlocked = true;
|
||||
|
Loading…
Reference in New Issue
Block a user