diff options
Diffstat (limited to 'graphics/video/codecs/smc.cpp')
-rw-r--r-- | graphics/video/codecs/smc.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/graphics/video/codecs/smc.cpp b/graphics/video/codecs/smc.cpp index 2f75f5f21e..1b92d3bf85 100644 --- a/graphics/video/codecs/smc.cpp +++ b/graphics/video/codecs/smc.cpp @@ -52,6 +52,11 @@ SMCDecoder::SMCDecoder(uint16 width, uint16 height) { _surface->create(width, height, 1); } +SMCDecoder::~SMCDecoder() { + _surface->free(); + delete _surface; +} + const Graphics::Surface *SMCDecoder::decodeImage(Common::SeekableReadStream *stream) { byte *pixels = (byte *)_surface->pixels; |