diff options
author | Max Horn | 2008-03-26 19:29:33 +0000 |
---|---|---|
committer | Max Horn | 2008-03-26 19:29:33 +0000 |
commit | b0c6a12c81c949c7f61b6639b509dad2b4fbb862 (patch) | |
tree | a20a4c62707dee6bad3a45fc2b3409d86c7377ce /engines/scumm | |
parent | afed582280195bc0165e93af7003aadea6438c89 (diff) | |
download | scummvm-rg350-b0c6a12c81c949c7f61b6639b509dad2b4fbb862.tar.gz scummvm-rg350-b0c6a12c81c949c7f61b6639b509dad2b4fbb862.tar.bz2 scummvm-rg350-b0c6a12c81c949c7f61b6639b509dad2b4fbb862.zip |
Modified Patch #1925352: Memory leak fixes
svn-id: r31244
Diffstat (limited to 'engines/scumm')
-rw-r--r-- | engines/scumm/scumm.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp index 50978f817d..3a93fae0fa 100644 --- a/engines/scumm/scumm.cpp +++ b/engines/scumm/scumm.cpp @@ -885,6 +885,8 @@ ScummEngine_v7::~ScummEngine_v7() { delete _splayer; } + delete _insane; + free(_languageBuffer); free(_languageIndex); } @@ -1201,6 +1203,7 @@ void ScummEngine::setupScumm() { _fmtownsBuf = (byte *)malloc(_screenWidth * _textSurfaceMultiplier * _screenHeight * _textSurfaceMultiplier); } + free(_compositeBuf); _compositeBuf = (byte *)malloc(_screenWidth * _textSurfaceMultiplier * _screenHeight * _textSurfaceMultiplier); } |