aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb
diff options
context:
space:
mode:
authorEugene Sandulenko2019-07-18 18:01:13 +0200
committerEugene Sandulenko2019-09-03 17:17:23 +0200
commitcea2285db1bd87864639271ec8555d50d0908f3b (patch)
tree04738d0de1f40b698e87ee775630daa96cf15e5e /engines/hdb
parentbba1fa849bf88164f905ad5a017a9be51683610e (diff)
downloadscummvm-rg350-cea2285db1bd87864639271ec8555d50d0908f3b.tar.gz
scummvm-rg350-cea2285db1bd87864639271ec8555d50d0908f3b.tar.bz2
scummvm-rg350-cea2285db1bd87864639271ec8555d50d0908f3b.zip
HDB: Remove redundant frees
ManagedSurface takes care of freeing itself
Diffstat (limited to 'engines/hdb')
-rw-r--r--engines/hdb/gfx.cpp2
1 files changed, 0 insertions, 2 deletions
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) {