mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-21 09:26:26 +00:00
CGE: Fix memory leak with _sprite global sprite
This commit is contained in:
parent
9f8eb5a740
commit
1f6c27480d
@ -131,6 +131,7 @@ void CGEEngine::setup() {
|
||||
_pocket[i]->_flags._kill = false;
|
||||
}
|
||||
_sprite = new Sprite(this, NULL);
|
||||
_sprite->_flags._kill = false;
|
||||
_horzLine = new HorizLine(this);
|
||||
_infoLine = new InfoLine(this, kInfoW);
|
||||
_cavLight = new CavLight(this);
|
||||
@ -190,7 +191,7 @@ CGEEngine::~CGEEngine() {
|
||||
// Delete engine objects
|
||||
delete _vga;
|
||||
delete _sys;
|
||||
//delete _sprite; Sprite is destroyed by the queue it's added to
|
||||
delete _sprite;
|
||||
delete _miniCave;
|
||||
delete _shadow;
|
||||
delete _horzLine;
|
||||
|
Loading…
x
Reference in New Issue
Block a user