aboutsummaryrefslogtreecommitdiff
path: root/engines/groovie/cursor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/groovie/cursor.cpp')
-rw-r--r--engines/groovie/cursor.cpp5
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];