fix memory leak (#150)
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user