Skip to content
Permalink
Browse files

Fix some leaks in geometry test suite

  • Loading branch information
nyalldawson committed Feb 7, 2017
1 parent 91d2e4f commit 42ec4e65e1c5e527539efb454aaf0ba2e0c849e2
Showing with 3 additions and 1 deletion.
  1. +2 −1 tests/src/core/testqgsgeometry.cpp
  2. +1 −0 tests/src/core/testqgsgeometryutils.cpp
@@ -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;
@@ -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()
@@ -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();

0 comments on commit 42ec4e6

Please sign in to comment.
You can’t perform that action at this time.