diff options
Diffstat (limited to 'engines/groovie')
-rw-r--r-- | engines/groovie/cursor.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/groovie/cursor.cpp b/engines/groovie/cursor.cpp index 65804a319c..ea2598ba6e 100644 --- a/engines/groovie/cursor.cpp +++ b/engines/groovie/cursor.cpp @@ -234,6 +234,7 @@ byte *GrvCursorMan_t7g::loadPalette(Common::File &file) { class Cursor_v2 : public Cursor { public: Cursor_v2(Common::File &file); + ~Cursor_v2(); void enable(); void showFrame(uint16 frame); @@ -289,6 +290,10 @@ Cursor_v2::Cursor_v2(Common::File &file) { delete[] pal; } +Cursor_v2::~Cursor_v2() { + delete[] _img; +} + void Cursor_v2::decodeFrame(byte *pal, byte *data, byte *dest) { // Scratch memory byte *tmp = new byte[_width * _height * 4]; |