From 8b45875e245f8eba2403987cdb4ba128720048a9 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Thu, 24 Dec 2015 13:00:10 +0200 Subject: LAB: Get rid of _screenImage Thanks to wjp for finding this --- engines/lab/lab.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'engines/lab/lab.cpp') 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 -- cgit v1.2.3