]> granicus.if.org Git - poly2tri-c/commitdiff
Add a missing call to free a pointer array in P2tSweepContext
authorBarak Itkin <lightningismyname@gmail.com>
Sun, 27 May 2012 10:19:10 +0000 (13:19 +0300)
committerBarak Itkin <lightningismyname@gmail.com>
Sun, 27 May 2012 10:19:10 +0000 (13:19 +0300)
p2t/sweep/sweep_context.c

index 63b5618cc34ac5cd31b95f5738a0acfeaaa934d9..213c58d003249d6fe99fcf8e39fe323b5321465f 100755 (executable)
@@ -94,6 +94,7 @@ p2t_sweepcontext_destroy (P2tSweepContext* THIS)
   p2t_node_free (THIS->af_middle_);
   p2t_node_free (THIS->af_tail_);
 
+  g_ptr_array_free (THIS->points_, TRUE);
   g_ptr_array_free (THIS->triangles_, TRUE);
 
   for (iter = g_list_first (THIS->map_); iter != NULL; iter = g_list_next (iter))