diff options
author | Paul Gilbert | 2009-05-15 02:18:51 +0000 |
---|---|---|
committer | Paul Gilbert | 2009-05-15 02:18:51 +0000 |
commit | fc87b82861e1a942dc887a4b37b9db03b92be14d (patch) | |
tree | 33aa4de3fcfbf209ceaa1191a5991c1c0f643607 | |
parent | fe795a739e0db7a6e86182e9443b71624a786499 (diff) | |
download | scummvm-rg350-fc87b82861e1a942dc887a4b37b9db03b92be14d.tar.gz scummvm-rg350-fc87b82861e1a942dc887a4b37b9db03b92be14d.tar.bz2 scummvm-rg350-fc87b82861e1a942dc887a4b37b9db03b92be14d.zip |
Fixed a memory leak in the new unified decodeGfxUnified decoder method
svn-id: r40585
-rw-r--r-- | engines/cruise/dataLoader.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/cruise/dataLoader.cpp b/engines/cruise/dataLoader.cpp index ac87d1305b..b3719ec013 100644 --- a/engines/cruise/dataLoader.cpp +++ b/engines/cruise/dataLoader.cpp @@ -131,6 +131,7 @@ void decodeGfxUnified(dataFileEntry *pCurrentFileEntry, int16 format) { } } + free(pCurrentFileEntry->subData.ptr); pCurrentFileEntry->subData.ptr = buffer; } |