diff options
author | Filippos Karapetis | 2015-12-24 13:00:10 +0200 |
---|---|---|
committer | Filippos Karapetis | 2015-12-24 13:00:10 +0200 |
commit | 8b45875e245f8eba2403987cdb4ba128720048a9 (patch) | |
tree | 5855ce2c80d610bad68ae1ba3ffd5219f58e30f6 /engines/lab/lab.cpp | |
parent | 28b5105f56201d37921521afcfa222c7b593004c (diff) | |
download | scummvm-rg350-8b45875e245f8eba2403987cdb4ba128720048a9.tar.gz scummvm-rg350-8b45875e245f8eba2403987cdb4ba128720048a9.tar.bz2 scummvm-rg350-8b45875e245f8eba2403987cdb4ba128720048a9.zip |
LAB: Get rid of _screenImage
Thanks to wjp for finding this
Diffstat (limited to 'engines/lab/lab.cpp')
-rw-r--r-- | engines/lab/lab.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/engines/lab/lab.cpp b/engines/lab/lab.cpp index b36bb136cf..d21dc66a30 100644 --- a/engines/lab/lab.cpp +++ b/engines/lab/lab.cpp @@ -89,7 +89,6 @@ LabEngine::LabEngine(OSystem *syst, const ADGameDescription *gameDesc) _utils = nullptr; _console = nullptr; _journalBackImage = nullptr; - _screenImage = nullptr; _lastTooLong = false; _interfaceOff = false; @@ -158,10 +157,6 @@ LabEngine::~LabEngine() { delete _utils; delete _console; delete _journalBackImage; - // _screenImage->_imageData is always pointing to the current drawing buffer. - // It shouldn't be deleted there. - _screenImage->_imageData = nullptr; - delete _screenImage; } Common::Error LabEngine::run() { @@ -179,7 +174,6 @@ Common::Error LabEngine::run() { _utils = new Utils(this); _console = new Console(this); _journalBackImage = new Image(this); - _screenImage = new Image(this); if (getPlatform() == Common::kPlatformWindows) { // Check if this is the Wyrmkeep trial |