diff options
Diffstat (limited to 'engines/sci/sci.cpp')
| -rw-r--r-- | engines/sci/sci.cpp | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp index cf08c69738..af8aac3147 100644 --- a/engines/sci/sci.cpp +++ b/engines/sci/sci.cpp @@ -100,7 +100,10 @@ SciEngine::~SciEngine() {  	// Remove all of our debug levels here  	Common::clearAllDebugChannels(); +	delete _kernel; +	delete _vocabulary;  	delete _console; +	delete _resmgr;  }  Common::Error SciEngine::run() { @@ -143,6 +146,8 @@ Common::Error SciEngine::run() {  		return Common::kNoGameDataFoundError;  	} +	_kernel = new Kernel(_resmgr); +	_vocabulary = new Vocabulary(_resmgr);  	script_adjust_opcode_formats(_resmgr->_sciVersion);  #if 0 @@ -235,8 +240,6 @@ Common::Error SciEngine::run() {  	delete _gamestate; -	delete _resmgr; -  	gfxop_exit(&gfx_state);  	return Common::kNoError; | 
