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 6859c8b200

View File

@ -129,6 +129,8 @@ class KDTree {
result = current_result; result = current_result;
} }
} }
delete[] current_result.c;
} }
// Is the ray origin within the left or right child node bounding box? // Is the ray origin within the left or right child node bounding box?