Skip to content

Commit

Permalink
Fix memory leak in QgsCurvePolygonV2::removeInteriorRing
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 9, 2015
1 parent acd8f26 commit 59b6209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/geometry/qgscurvepolygonv2.cpp
Expand Up @@ -447,7 +447,7 @@ bool QgsCurvePolygonV2::removeInteriorRing( int nr )
{
return false;
}
mInteriorRings.removeAt( nr );
delete mInteriorRings.takeAt( nr );
return true;
}

Expand Down

0 comments on commit 59b6209

Please sign in to comment.