Skip to content

Commit

Permalink
Fix leak in QgsRelief
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 11, 2018
1 parent 540d692 commit 3315db0
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 (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;
Expand Down

0 comments on commit 3315db0

Please sign in to comment.