From c0836af6076c08e698b8104860a9b744b8973b6d Mon Sep 17 00:00:00 2001 From: zzzzrrr Date: Fri, 23 Apr 2010 12:00:45 -0400 Subject: [PATCH] found another one :) --- poly2tri/sweep/sweep.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/poly2tri/sweep/sweep.cc b/poly2tri/sweep/sweep.cc index e6059fd..4e93fa4 100644 --- a/poly2tri/sweep/sweep.cc +++ b/poly2tri/sweep/sweep.cc @@ -529,6 +529,7 @@ void Sweep::FillBasinReq(SweepContext& tcx, Node* node) Fill(tcx, *node); if (node->prev == tcx.basin.left_node && node->next == tcx.basin.right_node) { + delete node; return; } else if (node->prev == tcx.basin.left_node) { Orientation o = Orient2d(*node->point, *node->next->point, *node->next->next->point);