diff options
author | Torbjörn Andersson | 2009-10-19 04:19:11 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2009-10-19 04:19:11 +0000 |
commit | 22116b488e78a01e39c8baa5379e6956a8d2e507 (patch) | |
tree | e7794c723fc20c5dd204497eff43eee3fff0bb57 /engines | |
parent | 2f9d24f932e2fc076f6da96a11c80091d186bff5 (diff) | |
download | scummvm-rg350-22116b488e78a01e39c8baa5379e6956a8d2e507.tar.gz scummvm-rg350-22116b488e78a01e39c8baa5379e6956a8d2e507.tar.bz2 scummvm-rg350-22116b488e78a01e39c8baa5379e6956a8d2e507.zip |
Fixed cppcheck warning.
svn-id: r45241
Diffstat (limited to 'engines')
-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]; |