Skip to content

Commit 937ab37

Browse files
committed
Free node buffers
1 parent 7624f6b commit 937ab37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tutorials/07_custom_bvh_import/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ class Tutorial : public TutorialBase
9797
CHECK_ORO( oroFree( reinterpret_cast<oroDeviceptr>( mesh.triangleIndices ) ) );
9898
CHECK_ORO( oroFree( reinterpret_cast<oroDeviceptr>( mesh.vertices ) ) );
9999
CHECK_ORO( oroFree( reinterpret_cast<oroDeviceptr>( pixels ) ) );
100+
CHECK_ORO( oroFree( reinterpret_cast<oroDeviceptr>( geomInput.nodeList.leafNodes ) ) );
101+
CHECK_ORO( oroFree( reinterpret_cast<oroDeviceptr>( geomInput.nodeList.internalNodes ) ) );
100102

101103
CHECK_HIPRT( hiprtDestroyGeometry( ctxt, geom ) );
102104
CHECK_HIPRT( hiprtDestroyContext( ctxt ) );

0 commit comments

Comments
 (0)