Skip to content

Commit 8cdecb2

Browse files
committed
mbvh: Fix memory issue (new / delete[] mismatch)
1 parent 46c8ac5 commit 8cdecb2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/luxrays/accelerators/mbvhaccel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ MBVHAccel::~MBVHAccel() {
4646
if (initialized) {
4747
for(const BVHAccel *bvh: uniqueLeafs)
4848
delete bvh;
49-
delete bvhRootTree;
49+
delete[] bvhRootTree;
5050
}
5151
}
5252

0 commit comments

Comments
 (0)