From 22116b488e78a01e39c8baa5379e6956a8d2e507 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Mon, 19 Oct 2009 04:19:11 +0000 Subject: Fixed cppcheck warning. svn-id: r45241 --- engines/groovie/cursor.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines/groovie') 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]; -- cgit v1.2.3