aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/lab/map.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/lab/map.cpp b/engines/lab/map.cpp
index c6b2277280..b484a1e323 100644
--- a/engines/lab/map.cpp
+++ b/engines/lab/map.cpp
@@ -106,7 +106,6 @@ void LabEngine::loadMapData() {
void LabEngine::freeMapData() {
freeButtonList(&_mapGadgetList);
- delete[] _maps;
delete _imgMap;
delete _imgRoom;
delete _imgUpArrowRoom;
@@ -121,8 +120,8 @@ void LabEngine::freeMapData() {
delete _imgMapEast;
delete _imgMapSouth;
delete _imgMapWest;
- delete _imgXMark;
- delete _maps;
+ // _imgXMark is a pointer to one of the four buffers above
+ delete[] _maps;
_imgMap = nullptr;
_imgRoom = nullptr;