From ba1f91eba80dd6f65101d4461fdd4b8612a12c7b Mon Sep 17 00:00:00 2001 From: Nicola Mettifogo Date: Thu, 24 Jul 2008 09:42:44 +0000 Subject: Fixed leak in new gui code. svn-id: r33261 --- engines/parallaction/gui_ns.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines') 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]); -- cgit v1.2.3