diff options
author | Paul Gilbert | 2011-07-10 19:23:14 +1000 |
---|---|---|
committer | Paul Gilbert | 2011-07-10 19:23:14 +1000 |
commit | a693ff2ecfa960b25ac33a936ef8b7b6055e68ae (patch) | |
tree | 0fa10344a57375637d18296ad3cdb0085da34a96 /engines/cge | |
parent | 66c7777dfedd4ec7a251b4a47e9b581a3e7570d4 (diff) | |
download | scummvm-rg350-a693ff2ecfa960b25ac33a936ef8b7b6055e68ae.tar.gz scummvm-rg350-a693ff2ecfa960b25ac33a936ef8b7b6055e68ae.tar.bz2 scummvm-rg350-a693ff2ecfa960b25ac33a936ef8b7b6055e68ae.zip |
CGE: A few more fixes for memory leaks identified by Valgrind
Diffstat (limited to 'engines/cge')
-rw-r--r-- | engines/cge/cge.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/cge/cge.cpp b/engines/cge/cge.cpp index 731f92854e..55b79d5b35 100644 --- a/engines/cge/cge.cpp +++ b/engines/cge/cge.cpp @@ -78,7 +78,9 @@ void CGEEngine::setup() { _pocket[i] = new Sprite(this, NULL); _sprite = new Sprite(this, NULL); _miniCave = new Sprite(this, NULL); + _miniCave->_flags._kill = false; _shadow = new Sprite(this, NULL); + _shadow->_flags._kill = false; _horzLine = new HorizLine(this); _infoLine = new InfoLine(this, INFO_W); _cavLight = new CavLight(this); @@ -138,7 +140,7 @@ CGEEngine::~CGEEngine() { // Delete engine objects delete _vga; delete _sys; - delete _sprite; + //delete _sprite; Sprite is destroyed by the queue it's added to delete _miniCave; delete _shadow; delete _horzLine; |