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 | |
| 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')
| -rw-r--r-- | graphics/scaler.cpp | 6 | ||||
| -rw-r--r-- | graphics/scaler.h | 1 |
2 files changed, 6 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 diff --git a/graphics/scaler.h b/graphics/scaler.h index ccd2c3991a..2cf3f66239 100644 --- a/graphics/scaler.h +++ b/graphics/scaler.h @@ -29,6 +29,7 @@ #include "graphics/surface.h" extern void InitScalers(uint32 BitFormat); +extern void DestroyScalers(); typedef void ScalerProc(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height); |
