diff options
Diffstat (limited to 'engines/parallaction/defs.h')
-rw-r--r-- | engines/parallaction/defs.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/parallaction/defs.h b/engines/parallaction/defs.h index f5325c760d..d2c1efdf1f 100644 --- a/engines/parallaction/defs.h +++ b/engines/parallaction/defs.h @@ -101,6 +101,17 @@ public: _array = NULL; } + ~Cnv() { + if (_count == 0 || _array == NULL) return; + + for (uint16 _si = 0; _si < _count; _si++) { + if (_array[_si]) + free(_array[_si]); + } + + free(_array); + } + byte* getFramePtr(uint16 index) { if (index >= _count) return NULL; |