Skip to content
Permalink
Browse files

Fix some leaks

  • Loading branch information
nyalldawson committed Sep 28, 2015
1 parent c5f464b commit fefd85adef1a1e0c189f837d9615cec80703e771
Showing with 4 additions and 1 deletion.
  1. +2 −0 tests/src/core/testqgslabelingenginev2.cpp
  2. +2 −1 tests/src/core/testziplayer.cpp
@@ -195,6 +195,8 @@ void TestQgsLabelingEngineV2::testRuleBased()

vl->setLabeling( new QgsVectorLayerSimpleLabeling );

delete rl2;

/*
QPainter p( &img );
QgsRenderContext context = QgsRenderContext::fromMapSettings( mapSettings );
@@ -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;
}
@@ -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() ) );

0 comments on commit fefd85a

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