Skip to content

Commit

Permalink
Fix leak in QgsRelief
Browse files Browse the repository at this point in the history
(cherry-picked from 3315db0)
  • Loading branch information
nyalldawson committed Mar 15, 2018
1 parent e2dad8e commit d7f4366
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/analysis/raster/qgsrelief.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit d7f4366

Please sign in to comment.