From 2e099750868fa3b6129f0212d7f8d8a24f6aaa50 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 13 Dec 2015 20:28:35 +0200 Subject: LAB: Simplify the LabEngine destructor --- engines/lab/lab.cpp | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'engines') diff --git a/engines/lab/lab.cpp b/engines/lab/lab.cpp index 1b62147463..0c54e9c494 100644 --- a/engines/lab/lab.cpp +++ b/engines/lab/lab.cpp @@ -149,6 +149,7 @@ LabEngine::~LabEngine() { // Remove all of our debug levels here DebugMan.clearAllDebugChannels(); + freeMapData(); delete _event; delete _resource; delete _music; @@ -157,22 +158,6 @@ LabEngine::~LabEngine() { delete[] _rooms; delete _tilePuzzle; delete _utils; - delete _imgMap; - delete _imgRoom; - delete _imgUpArrowRoom; - delete _imgDownArrowRoom; - delete _imgBridge; - delete _imgHRoom; - delete _imgVRoom; - delete _imgMaze; - delete _imgHugeMaze; - delete _imgPath; - delete _imgMapNorth; - delete _imgMapEast; - delete _imgMapSouth; - delete _imgMapWest; - delete _imgXMark; - delete _maps; } Common::Error LabEngine::run() { -- cgit v1.2.3