diff options
Diffstat (limited to 'graphics/video/codecs/rpza.cpp')
-rw-r--r-- | graphics/video/codecs/rpza.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/graphics/video/codecs/rpza.cpp b/graphics/video/codecs/rpza.cpp index 7212aba64c..6869eaca7d 100644 --- a/graphics/video/codecs/rpza.cpp +++ b/graphics/video/codecs/rpza.cpp @@ -47,6 +47,11 @@ RPZADecoder::RPZADecoder(uint16 width, uint16 height) : Codec() { _surface->create(width, height, _pixelFormat.bytesPerPixel); } +RPZADecoder::~RPZADecoder() { + _surface->free(); + delete _surface; +} + #define ADVANCE_BLOCK() \ pixelPtr += 4; \ if (pixelPtr >= _surface->w) { \ |