diff options
author | Max Horn | 2006-06-24 09:29:57 +0000 |
---|---|---|
committer | Max Horn | 2006-06-24 09:29:57 +0000 |
commit | ca2a6d7cd19625c1a6319905fdb743609e7d6446 (patch) | |
tree | 603031cc89c150a5ceec774d9453abd51c85c0ee | |
parent | 9a955180a4179237d3474a73c6829a6554a9bc09 (diff) | |
download | scummvm-rg350-ca2a6d7cd19625c1a6319905fdb743609e7d6446.tar.gz scummvm-rg350-ca2a6d7cd19625c1a6319905fdb743609e7d6446.tar.bz2 scummvm-rg350-ca2a6d7cd19625c1a6319905fdb743609e7d6446.zip |
Fixing a leak in the Kyra engine (the savefile manager allocated by class Engine was never freed)
svn-id: r23276
-rw-r--r-- | engines/kyra/kyra.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/engines/kyra/kyra.cpp b/engines/kyra/kyra.cpp index 39ab2c59ec..b29be65ef4 100644 --- a/engines/kyra/kyra.cpp +++ b/engines/kyra/kyra.cpp @@ -85,7 +85,6 @@ KyraEngine::KyraEngine(OSystem *system) _screen = 0; _res = 0; _sound = 0; - _saveFileMan = 0; _seq = 0; _scriptInterpreter = 0; _text = 0; @@ -178,8 +177,6 @@ int KyraEngine::init() { } _sound->setVolume(255); - _saveFileMan = _system->getSavefileManager(); - assert(_saveFileMan); _res = new Resource(this); assert(_res); _screen = new Screen(this, _system); @@ -347,7 +344,6 @@ KyraEngine::~KyraEngine() { delete _screen; delete _res; delete _sound; - delete _saveFileMan; delete _seq; delete _scriptInterpreter; delete _text; |