Skip to content
Permalink
Browse files

Fix leak in QgsRelief

  • Loading branch information
nyalldawson committed Mar 11, 2018
1 parent 540d692 commit 3315db0fe7d3657b29d6e02d350b303ac11b6552
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/analysis/raster/qgsrelief.cpp
@@ -452,6 +452,9 @@ gdal::dataset_unique_ptr QgsRelief::openOutputFile( GDALDatasetH inputDataset, G

//create three band raster (red, green, blue)
gdal::dataset_unique_ptr outputDataset( GDALCreate( outputDriver, mOutputFile.toUtf8().constData(), xSize, ySize, 3, GDT_Byte, papszOptions ) );
CSLDestroy( papszOptions );
papszOptions = nullptr;

if ( !outputDataset )
{
return nullptr;

0 comments on commit 3315db0

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