aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorMax Horn2008-03-27 11:06:29 +0000
committerMax Horn2008-03-27 11:06:29 +0000
commit9287ea8376b689359b7c10a4b4a8b14474c402b5 (patch)
tree1c3a619555836ff543c81bdb638c58684b087cab /graphics
parent4d51eb5fb74b13a34a3807d0bdd5fdafb98388fa (diff)
downloadscummvm-rg350-9287ea8376b689359b7c10a4b4a8b14474c402b5.tar.gz
scummvm-rg350-9287ea8376b689359b7c10a4b4a8b14474c402b5.tar.bz2
scummvm-rg350-9287ea8376b689359b7c10a4b4a8b14474c402b5.zip
Patch #1926787: small memory leak and cleanup
svn-id: r31261
Diffstat (limited to 'graphics')
-rw-r--r--graphics/font.cpp1
-rw-r--r--graphics/scaler.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/graphics/font.cpp b/graphics/font.cpp
index bec80e9ec0..b5817e613a 100644
--- a/graphics/font.cpp
+++ b/graphics/font.cpp
@@ -161,6 +161,7 @@ void free_font(NewFontData* pf) {
free(pf->bits);
free(pf->offset);
free(pf->width);
+ free(pf->bbx);
free(pf);
}
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
}