mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 22:28:10 +00:00
LAB: Safeguard: Set some variables to null pointer after deleting them
This commit is contained in:
parent
fa222f0ca8
commit
9b6851c1a7
@ -549,6 +549,11 @@ void LabEngine::mainGameLoop() {
|
||||
delete _roomsFound;
|
||||
delete[] _rooms;
|
||||
delete[] _inventory;
|
||||
|
||||
_conditions = nullptr;
|
||||
_roomsFound = nullptr;
|
||||
_rooms = nullptr;
|
||||
_inventory = nullptr;
|
||||
}
|
||||
|
||||
void LabEngine::showLab2Teaser() {
|
||||
|
Loading…
Reference in New Issue
Block a user