Skip to content

Commit

Permalink
coverity fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Nov 29, 2015
1 parent 0519423 commit c14352f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions src/core/qgsvectorlayerlabelprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ QgsGeometry* QgsVectorLayerLabelProvider::getPointObstacleGeometry( QgsFeature&
}
else
{
delete obstacleGeom;
obstacleGeom = obstaclePolygon;
}
}
Expand Down
2 changes: 0 additions & 2 deletions tests/src/core/testqgsgeometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,6 @@ void TestQgsGeometry::pointV2()
QCOMPARE( size, p12.wkbSize() );
QgsPointV2 p13;
p13.fromWkb( wkb );
delete wkb;
wkb = 0;
QVERIFY( p13 == p12 );

Expand All @@ -508,7 +507,6 @@ void TestQgsGeometry::pointV2()
p13 = QgsPointV2( 1, 2 );
wkb = line.asWkb( size );
QVERIFY( !p13.fromWkb( wkb ) );
delete wkb;
wkb = 0;
QCOMPARE( p13.wkbType(), QgsWKBTypes::Unknown );

Expand Down

0 comments on commit c14352f

Please sign in to comment.