diff options
Diffstat (limited to 'engines/toon/movie.cpp')
-rw-r--r-- | engines/toon/movie.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/toon/movie.cpp b/engines/toon/movie.cpp index e56bb82cfa..f0c40366be 100644 --- a/engines/toon/movie.cpp +++ b/engines/toon/movie.cpp @@ -46,7 +46,10 @@ bool ToonstruckSmackerDecoder::loadFile(const Common::String &filename, int forc if (forcedflags & 0x10 || _surface->h == 200) { _header.flags = 4; - delete this->_surface; + if (_surface) { + _surface->free(); + delete _surface; + } _surface = new Graphics::Surface(); _surface->create(640, 400, 1); } |