aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/surface.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-05-27 06:01:15 -0400
committerPaul Gilbert2016-05-27 06:01:15 -0400
commit2b2dffc02ce4c37466b1d31cf53ddb963a05e185 (patch)
tree7cf773212cff36b736313abd6442bd0f69fe5226 /engines/sherlock/surface.cpp
parentf582548516fa09d04f381445ce35b03e2fae5b59 (diff)
downloadscummvm-rg350-2b2dffc02ce4c37466b1d31cf53ddb963a05e185.tar.gz
scummvm-rg350-2b2dffc02ce4c37466b1d31cf53ddb963a05e185.tar.bz2
scummvm-rg350-2b2dffc02ce4c37466b1d31cf53ddb963a05e185.zip
SHERLOCK: Remove redundant allocation in surface creation
Diffstat (limited to 'engines/sherlock/surface.cpp')
-rw-r--r--engines/sherlock/surface.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sherlock/surface.cpp b/engines/sherlock/surface.cpp
index 92ebdb6fea..93bc001149 100644
--- a/engines/sherlock/surface.cpp
+++ b/engines/sherlock/surface.cpp
@@ -25,7 +25,8 @@
namespace Sherlock {
-BaseSurface::BaseSurface() : Graphics::Screen(), Fonts() {
+BaseSurface::BaseSurface() : Graphics::Screen(0, 0), Fonts() {
+ free(); // Free the 0x0 surface allocated by Graphics::Screen
}
BaseSurface::BaseSurface(int width, int height) : Graphics::Screen(width, height),