Skip to content

Commit

Permalink
Fix some leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 28, 2015
1 parent c5f464b commit fefd85a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/src/core/testqgslabelingenginev2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ void TestQgsLabelingEngineV2::testRuleBased()

vl->setLabeling( new QgsVectorLayerSimpleLabeling );

delete rl2;

/*
QPainter p( &img );
QgsRenderContext context = QgsRenderContext::fromMapSettings( mapSettings );
Expand Down
3 changes: 2 additions & 1 deletion tests/src/core/testziplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ QgsMapLayer *TestZipLayer::getZipLayer( QString myPath, QString myName )
if ( layerItem )
myLayer = getLayer( layerItem->path(), layerItem->name(), layerItem->providerKey() );
}
delete myItem;
delete dirItem;
return myLayer;
}
Expand Down Expand Up @@ -157,7 +158,7 @@ bool TestZipLayer::testZipItem( QString myFileName, QString myChildName, QString
}
QgsDebugMsg( QString( "time.elapsed() = %1 ms" ).arg( time.elapsed() ) );
bool ok = false;
QString driverName;

QVector<QgsDataItem*> myChildren = myZipItem->children();

QgsDebugMsg( QString( "has %1 items" ).arg( myChildren.size() ) );
Expand Down

0 comments on commit fefd85a

Please sign in to comment.