From cea2285db1bd87864639271ec8555d50d0908f3b Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 18 Jul 2019 18:01:13 +0200 Subject: HDB: Remove redundant frees ManagedSurface takes care of freeing itself --- engines/hdb/gfx.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'engines/hdb/gfx.cpp') diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp index e60a7ba2ab..05adecb1a6 100644 --- a/engines/hdb/gfx.cpp +++ b/engines/hdb/gfx.cpp @@ -1057,7 +1057,6 @@ Picture::Picture() : _width(0), _height(0), _name("") { } Picture::~Picture() { - _surface.free(); } Graphics::Surface Picture::load(Common::SeekableReadStream *stream) { @@ -1115,7 +1114,6 @@ Tile::Tile() : _flags(0), _name("") { } Tile::~Tile() { - _surface.free(); } Graphics::Surface Tile::load(Common::SeekableReadStream *stream) { -- cgit v1.2.3