From f582548516fa09d04f381445ce35b03e2fae5b59 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 27 May 2016 06:00:58 -0400 Subject: MADS: Remove redundant allocation in surface creation --- engines/mads/msurface.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3