aboutsummaryrefslogtreecommitdiff
path: root/engines/mads
diff options
context:
space:
mode:
authorPaul Gilbert2016-05-27 06:00:58 -0400
committerPaul Gilbert2016-05-27 06:00:58 -0400
commitf582548516fa09d04f381445ce35b03e2fae5b59 (patch)
tree87657e2fc397f7f2154b37dd4aa9a7f45d390f05 /engines/mads
parente68de1d3b57baae7b67e20113c365fb64b46e0b6 (diff)
downloadscummvm-rg350-f582548516fa09d04f381445ce35b03e2fae5b59.tar.gz
scummvm-rg350-f582548516fa09d04f381445ce35b03e2fae5b59.tar.bz2
scummvm-rg350-f582548516fa09d04f381445ce35b03e2fae5b59.zip
MADS: Remove redundant allocation in surface creation
Diffstat (limited to 'engines/mads')
-rw-r--r--engines/mads/msurface.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/mads/msurface.h b/engines/mads/msurface.h
index 733a29d9e3..5b5a1d62c1 100644
--- a/engines/mads/msurface.h
+++ b/engines/mads/msurface.h
@@ -74,7 +74,9 @@ public:
/**
* Basic constructor
*/
- BaseSurface() : Graphics::Screen() {}
+ BaseSurface() : Graphics::Screen(0, 0) {
+ free(); // Free the 0x0 surface allocated by Graphics::Screen
+ }
/**
* Constructor for a surface with fixed dimensions