mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Fix leak in QgsRelief
This commit is contained in:
parent
540d692c56
commit
3315db0fe7
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user