diff options
author | Paul Gilbert | 2011-07-12 22:02:00 +1000 |
---|---|---|
committer | Paul Gilbert | 2011-07-12 22:02:00 +1000 |
commit | 11c9e64885faed3c3d7ba5888e3f129548f789e8 (patch) | |
tree | 801802896b6e07ac6b6bee017b13dfc161889fb6 /engines/cge | |
parent | e2b19ad9b0bc3e2a437eaab3aaa62302e0e892d3 (diff) | |
download | scummvm-rg350-11c9e64885faed3c3d7ba5888e3f129548f789e8.tar.gz scummvm-rg350-11c9e64885faed3c3d7ba5888e3f129548f789e8.tar.bz2 scummvm-rg350-11c9e64885faed3c3d7ba5888e3f129548f789e8.zip |
CGE: More bugfixes for memory leaks
Diffstat (limited to 'engines/cge')
-rw-r--r-- | engines/cge/cge_main.cpp | 1 | ||||
-rw-r--r-- | engines/cge/vga13h.cpp | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/cge/cge_main.cpp b/engines/cge/cge_main.cpp index 6f741f1598..ed5ee8eeb1 100644 --- a/engines/cge/cge_main.cpp +++ b/engines/cge/cge_main.cpp @@ -247,6 +247,7 @@ void CGEEngine::loadGame(XFile &file, bool tiny = false) { for (i = 0; i < POCKET_NX; i++) { register int r = _pocref[i]; + delete _pocket[i]; _pocket[i] = (r < 0) ? NULL : _vga->_spareQ->locate(r); } } diff --git a/engines/cge/vga13h.cpp b/engines/cge/vga13h.cpp index 96642b4540..5bdb50fa9e 100644 --- a/engines/cge/vga13h.cpp +++ b/engines/cge/vga13h.cpp @@ -612,10 +612,9 @@ Sprite *Sprite::expand() { setSeq(seq); } else setSeq(getConstantSeq(_shpCnt == 1)); - //disable(); // disable interupt setShapeList(shplist); - //enable(); // enable interupt + if (nea) nea[neacnt - 1]._ptr = _ext->_near = nea; else |