diff options
author | Filippos Karapetis | 2015-12-13 20:28:35 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-23 21:34:03 +0100 |
commit | 2e099750868fa3b6129f0212d7f8d8a24f6aaa50 (patch) | |
tree | ab66e97b9f57567703de54c55b9a44d15a93183b /engines/lab | |
parent | e994c90d9bb68f8be6de5238f1e8192b4d5424f6 (diff) | |
download | scummvm-rg350-2e099750868fa3b6129f0212d7f8d8a24f6aaa50.tar.gz scummvm-rg350-2e099750868fa3b6129f0212d7f8d8a24f6aaa50.tar.bz2 scummvm-rg350-2e099750868fa3b6129f0212d7f8d8a24f6aaa50.zip |
LAB: Simplify the LabEngine destructor
Diffstat (limited to 'engines/lab')
-rw-r--r-- | engines/lab/lab.cpp | 17 |
1 files changed, 1 insertions, 16 deletions
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() { |