Hotfix for memory leak

The Vector class is still leaky, but it's not a noticeable problem with this fix. Proper fixing requries more debugging
This commit is contained in:
karl 2021-01-18 18:59:13 +01:00
parent 1649af9943
commit a3233d90c7

View File

@ -127,6 +127,8 @@ class KDTree {
nearest = current_distance;
nearest_triangle = triangle;
result = current_result;
} else {
delete[] current_result.c;
}
}
}