Skip to content
Permalink
Browse files

Fix leak

  • Loading branch information
m-kuhn committed Sep 10, 2020
1 parent 861e881 commit 0048592f337fbd547b135c4a86d861c6a6f022c9
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/analysis/processing/qgsalgorithmzonalstatisticsfeaturebased.cpp
@@ -135,7 +135,7 @@ bool QgsZonalStatisticsFeatureBasedAlgorithm::prepareAlgorithm( const QVariantMa
mCrs = rasterLayer->crs();
mPixelSizeX = rasterLayer->rasterUnitsPerPixelX();
mPixelSizeY = rasterLayer->rasterUnitsPerPixelY();
QgsFeatureSource *source = parameterAsSource( parameters, inputParameterName(), context );
std::unique_ptr<QgsFeatureSource> source( parameterAsSource( parameters, inputParameterName(), context ) );

mOutputFields = source->fields();

0 comments on commit 0048592

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