From: awaw fumin Date: Wed, 2 Apr 2014 23:50:32 +0000 (+0300) Subject: cherry-pick the relevant parts of commit 0c92e87f97be from the GEGL copy of the library X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a48b8af1baaaab91b976297efac0a26025a284ae;p=poly2tri-c cherry-pick the relevant parts of commit 0c92e87f97be from the GEGL copy of the library [PATCH] seamless-close: Fix extra unref --- diff --git a/poly2tri-c/refine/cluster.c b/poly2tri-c/refine/cluster.c index ba04435..ccf9217 100644 --- a/poly2tri-c/refine/cluster.c +++ b/poly2tri-c/refine/cluster.c @@ -98,8 +98,8 @@ p2tr_cluster_get_for (P2trPoint *P, p2tr_edge_unref (next); current = p2tr_edge_ref (E); - next = p2tr_point_edge_ccw(P, current); - p2tr_edge_unref(next); + next = p2tr_point_edge_ccw (P, current); + while (next != g_queue_peek_tail (&cluster->edges) && (temp_angle = p2tr_edge_angle_between (current->mirror, next)) <= P2TR_CLUSTER_LIMIT_ANGLE && p2tr_cluster_cw_tri_between_is_in_domain (next, current))