Skip to content

Commit

Permalink
Merge pull request #132 from romainaugier/main
Browse files Browse the repository at this point in the history
Fix memory leak: BVH8_CPU leaf was not freed (resolves #131)
  • Loading branch information
jbikker authored Mar 1, 2025
2 parents 4a30313 + 5f5c8f2 commit 288a8ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tiny_bvh.h
Original file line number Diff line number Diff line change
Expand Up @@ -4223,6 +4223,7 @@ BVH8_CPU::~BVH8_CPU()
{
if (!ownBVH8) bvh8 = MBVH<8>(); // clear out pointers we don't own.
AlignedFree( bvh8Node );
AlignedFree( bvh8Leaf );
}

void BVH8_CPU::Build( const bvhvec4* vertices, const uint32_t primCount )
Expand Down

0 comments on commit 288a8ed

Please sign in to comment.