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
6859c8b200
@ -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?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user