diff --git a/engine/src/renderer/3d/pipeline/static/static_pipeline.cpp b/engine/src/renderer/3d/pipeline/static/static_pipeline.cpp index 3d7d319..645c89b 100644 --- a/engine/src/renderer/3d/pipeline/static/static_pipeline.cpp +++ b/engine/src/renderer/3d/pipeline/static/static_pipeline.cpp @@ -77,6 +77,10 @@ void StaticPipeline::render(const StaticMesh* mesh, if (frame->bbox->frustumCheck( rendererCore->renderer3D.frustumPlanes.getAll(), model) == CoreBBoxFrustum::OUTSIDE_FRUSTUM) { + if (options && optionsManuallyAllocated) { + delete options; + } + delete infoBag; return; } }