Skip to content

Commit

Permalink
Fix some leaks in geometry test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 7, 2017
1 parent 91d2e4f commit 42ec4e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/src/core/testqgsgeometry.cpp
Expand Up @@ -2301,7 +2301,7 @@ void TestQgsGeometry::lineString()
QCOMPARE( static_cast< QgsPointV2*>( mpBoundary->geometryN( 1 ) )->x(), 1.0 );
QCOMPARE( static_cast< QgsPointV2*>( mpBoundary->geometryN( 1 ) )->y(), 1.0 );
QCOMPARE( static_cast< QgsPointV2*>( mpBoundary->geometryN( 1 ) )->z(), 20.0 );

delete boundary;

//extend
QgsLineString extend1;
Expand Down Expand Up @@ -3285,6 +3285,7 @@ void TestQgsGeometry::multiLineString()
QCOMPARE( static_cast< QgsPointV2*>( mpBoundary->geometryN( 3 ) )->x(), 20.0 );
QCOMPARE( static_cast< QgsPointV2*>( mpBoundary->geometryN( 3 ) )->y(), 20.0 );
QCOMPARE( static_cast< QgsPointV2*>( mpBoundary->geometryN( 3 ) )->z(), 200.0 );
delete boundary;
}

void TestQgsGeometry::multiPolygon()
Expand Down
1 change: 1 addition & 0 deletions tests/src/core/testqgsgeometryutils.cpp
Expand Up @@ -428,6 +428,7 @@ void TestQgsGeometryUtils::testVerticesAtDistance()
QVERIFY( QgsGeometryUtils::verticesAtDistance( *outerRing1, 4, previous, next ) );
QCOMPARE( previous, QgsVertexId( 0, 0, 4 ) );
QCOMPARE( next, QgsVertexId( 0, 0, 4 ) );
delete outerRing1;

// test closed line
QgsLineString* closedRing1 = new QgsLineString();
Expand Down

0 comments on commit 42ec4e6

Please sign in to comment.