Closed murphkev closed 6 months ago
Heya,
Looks like you forgot to dispose triangles in Triangulation.cs line 68
Triangles are passed into Delaunnay (lines 77 and 84); but the Delaunnay constructor copies the native array, so they never get disposed.
https://github.com/iShapeUnity/Triangulation/blob/master/Runtime/iShape/Triangulation/Shape/Delaunay/Triangulation.cs
Cheers - great package btw!
Thanks for the heads-up, I agree, it's a leak! Would you be interested in suggesting a fix or submitting a PR? I will appreciate it.
fixed in 0.0.7
Heya,
Looks like you forgot to dispose triangles in Triangulation.cs line 68
Triangles are passed into Delaunnay (lines 77 and 84); but the Delaunnay constructor copies the native array, so they never get disposed.
https://github.com/iShapeUnity/Triangulation/blob/master/Runtime/iShape/Triangulation/Shape/Delaunay/Triangulation.cs
Cheers - great package btw!