void OnApplicationQuit() { kdTreeNative.DisposeArrays(); pointsNative.Dispose(); queries.Dispose(); answers.Dispose(); }
void OnApplicationQuit() { kd1.DisposeArrays(); kd2.DisposeArrays(); points_native.Dispose(); queries.Dispose(); answers.Dispose(); }
protected override void OnDestroy() { if (translations.IsCreated) { translations.Dispose(); } if (velocities.IsCreated) { velocities.Dispose(); } kd.DisposeArrays(); }