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 /graphics/scaler.cpp | |
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 'graphics/scaler.cpp')
-rw-r--r-- | graphics/scaler.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/graphics/scaler.cpp b/graphics/scaler.cpp index f460124c62..d80003761b 100644 --- a/graphics/scaler.cpp +++ b/graphics/scaler.cpp @@ -27,7 +27,6 @@ #include "graphics/scaler/scalebit.h" #include "common/util.h" - int gBitFormat = 565; #ifndef DISABLE_HQ_SCALERS @@ -112,6 +111,11 @@ void InitScalers(uint32 BitFormat) { #endif } +void DestroyScalers(){ + free(RGBtoYUV); + free(LUT16to32); +} + /** * Trivial 'scaler' - in fact it doesn't do any scaling but just copies the |