Modified Patch #1925352: Memory leak fixes

svn-id: r31244
This commit is contained in:
Max Horn 2008-03-26 19:29:33 +00:00
parent afed582280
commit b0c6a12c81
8 changed files with 33 additions and 1 deletions

View file

@ -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