From 9287ea8376b689359b7c10a4b4a8b14474c402b5 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 27 Mar 2008 11:06:29 +0000 Subject: Patch #1926787: small memory leak and cleanup svn-id: r31261 --- graphics/scaler.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'graphics/scaler.cpp') diff --git a/graphics/scaler.cpp b/graphics/scaler.cpp index 428e8a4605..ec20a722e6 100644 --- a/graphics/scaler.cpp +++ b/graphics/scaler.cpp @@ -112,10 +112,12 @@ void InitScalers(uint32 BitFormat) { } void DestroyScalers(){ +#ifndef DISABLE_HQ_SCALERS free(RGBtoYUV); free(LUT16to32); RGBtoYUV = 0; LUT16to32 = 0; +#endif } -- cgit v1.2.3