From f5a6ad6ab925ec152590a1dbb51f204f116648a1 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Mon, 15 Apr 2013 21:38:21 +0200 Subject: SCI: Fix memory leak --- engines/sci/engine/kpathing.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines') diff --git a/engines/sci/engine/kpathing.cpp b/engines/sci/engine/kpathing.cpp index b839ac51c3..64793efa6c 100644 --- a/engines/sci/engine/kpathing.cpp +++ b/engines/sci/engine/kpathing.cpp @@ -2388,6 +2388,8 @@ reg_t kMergePoly(EngineState *s, int argc, reg_t *argv) { debugN("\n"); #endif } + + delete polygon; } node = s->_segMan->lookupNode(node->succ); -- cgit v1.2.3