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:
parent
1649af9943
commit
a3233d90c7
@ -127,6 +127,8 @@ class KDTree {
|
||||
nearest = current_distance;
|
||||
nearest_triangle = triangle;
|
||||
result = current_result;
|
||||
} else {
|
||||
delete[] current_result.c;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user