aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction
diff options
context:
space:
mode:
authorNicola Mettifogo2008-07-24 09:42:44 +0000
committerNicola Mettifogo2008-07-24 09:42:44 +0000
commitba1f91eba80dd6f65101d4461fdd4b8612a12c7b (patch)
treed3947581ec58e9f1f2fcfcf7c9eda56263f43ebb /engines/parallaction
parent4936e5f7df8e2257b1af4ee3ab2fdcd8cb88e91b (diff)
downloadscummvm-rg350-ba1f91eba80dd6f65101d4461fdd4b8612a12c7b.tar.gz
scummvm-rg350-ba1f91eba80dd6f65101d4461fdd4b8612a12c7b.tar.bz2
scummvm-rg350-ba1f91eba80dd6f65101d4461fdd4b8612a12c7b.zip
Fixed leak in new gui code.
svn-id: r33261
Diffstat (limited to 'engines/parallaction')
-rw-r--r--engines/parallaction/gui_ns.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/parallaction/gui_ns.cpp b/engines/parallaction/gui_ns.cpp
index 258463bbbe..2428c4b989 100644
--- a/engines/parallaction/gui_ns.cpp
+++ b/engines/parallaction/gui_ns.cpp
@@ -501,6 +501,11 @@ public:
_block.create(BLOCK_WIDTH, BLOCK_HEIGHT, 1);
}
+ ~SelectCharacterInputState() {
+ _block.free();
+ _emptySlots.free();
+ }
+
void cleanup() {
_points[0] = _points[1] = _points[2] = 0;
_vm->_gfx->hideLabel(_labels[1]);