]> granicus.if.org Git - poly2tri-c/commitdiff
cherry-pick the relevant parts of commit 0c92e87f97be from the GEGL copy of the library
authorawaw fumin <awawfumin@gmail.com>
Wed, 2 Apr 2014 23:50:32 +0000 (02:50 +0300)
committerBarak Itkin <lightningismyname@gmail.com>
Wed, 2 Apr 2014 23:53:05 +0000 (02:53 +0300)
[PATCH] seamless-close: Fix extra unref

poly2tri-c/refine/cluster.c

index ba04435d7dcfc4f5edf685ec6a33ded91e040b54..ccf92170507e85041fc2ee4c5d0a11c4c8d52756 100644 (file)
@@ -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))