diff options
author | Christopher Page | 2008-06-12 18:52:43 +0000 |
---|---|---|
committer | Christopher Page | 2008-06-12 18:52:43 +0000 |
commit | 101105315e2c036c6edc2c5f2932eac8837fe14a (patch) | |
tree | d219886393e6d24e79a8a5a4c7f1578e4501e056 /engines | |
parent | a596879c8ead93bc3dd8e812103d78819dd2a81a (diff) | |
download | scummvm-rg350-101105315e2c036c6edc2c5f2932eac8837fe14a.tar.gz scummvm-rg350-101105315e2c036c6edc2c5f2932eac8837fe14a.tar.bz2 scummvm-rg350-101105315e2c036c6edc2c5f2932eac8837fe14a.zip |
CINE: Fixed memory leaks in the CINE engine
svn-id: r32677
Diffstat (limited to 'engines')
-rw-r--r-- | engines/cine/cine.cpp | 1 | ||||
-rw-r--r-- | engines/cine/pal.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/engines/cine/cine.cpp b/engines/cine/cine.cpp index 6cf9e2fb26..f6778b6457 100644 --- a/engines/cine/cine.cpp +++ b/engines/cine/cine.cpp @@ -70,6 +70,7 @@ CineEngine::~CineEngine() { } Common::clearAllSpecialDebugLevels(); + free(palPtr); free(partBuffer); free(textDataPtr); } diff --git a/engines/cine/pal.h b/engines/cine/pal.h index 70fcc0d98a..768cf0d27d 100644 --- a/engines/cine/pal.h +++ b/engines/cine/pal.h @@ -34,6 +34,8 @@ struct PalEntry { byte pal2[16]; }; +extern PalEntry *palPtr; + void loadPal(const char *fileName); void loadRelatedPalette(const char *fileName); |