Skip to content
Permalink
Browse files

Fix leak in QgsRelief

(cherry-picked from 3315db0)
  • Loading branch information
nyalldawson committed Mar 11, 2018
1 parent e2dad8e commit d7f43662245f8ead4d2e65bb8723da93771c83d4
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 (reg, 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 d7f4366

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