fix memory leak (#150)

This commit is contained in:
Declan Hopkins
2022-12-23 14:20:09 -08:00
committed by GitHub
parent 8b8500a1c9
commit e3726600fd
@@ -77,6 +77,10 @@ void StaticPipeline::render(const StaticMesh* mesh,
if (frame->bbox->frustumCheck( if (frame->bbox->frustumCheck(
rendererCore->renderer3D.frustumPlanes.getAll(), model) == rendererCore->renderer3D.frustumPlanes.getAll(), model) ==
CoreBBoxFrustum::OUTSIDE_FRUSTUM) { CoreBBoxFrustum::OUTSIDE_FRUSTUM) {
if (options && optionsManuallyAllocated) {
delete options;
}
delete infoBag;
return; return;
} }
} }