mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix memory leakage for CutAlongPolyline
This commit is contained in:
@@ -120,7 +120,7 @@ void RivPolylineIntersectionGeometryGenerator::generateIntersectionGeometry( cvf
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RivPolylineIntersectionGeometryGenerator::calculateArrays( cvf::UByteArray* visibleCells )
|
||||
{
|
||||
if ( m_hexGrid.isNull() || m_polylineSegmentsMeshData.size() != 0 ) return;
|
||||
if ( m_hexGrid == nullptr || m_polylineSegmentsMeshData.size() != 0 ) return;
|
||||
|
||||
// Mesh data per polyline segment
|
||||
std::vector<PolylineSegmentMeshData> polylineSegmentMeshData = {};
|
||||
|
||||
@@ -79,8 +79,8 @@ private:
|
||||
static std::vector<cvf::Vec3d> initializePolylineUtmFromPolylineUtmXy( const std::vector<cvf::Vec2d>& polylineUtmXy );
|
||||
|
||||
private:
|
||||
cvf::ref<RivIntersectionHexGridInterface> m_hexGrid;
|
||||
const std::vector<cvf::Vec3d> m_polylineUtm;
|
||||
RivIntersectionHexGridInterface* m_hexGrid = nullptr;
|
||||
const std::vector<cvf::Vec3d> m_polylineUtm;
|
||||
|
||||
// Output
|
||||
std::vector<PolylineSegmentMeshData> m_polylineSegmentsMeshData;
|
||||
|
||||
Reference in New Issue
Block a user