Skip to content

Commit

Permalink
valgrind destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsumner committed Jun 10, 2024
1 parent 014c1fe commit 583489a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions inst/include/gdalwarpgeneral/gdalwarpgeneral.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,15 +198,17 @@ inline List gdal_warp_general(CharacterVector dsn,


auto psOptions = GDALWarpAppOptionsNew(papszArg, nullptr);
CSLDestroy(papszArg);

GDALWarpAppOptionsSetProgress(psOptions, NULL, NULL );

GDALDatasetH hRet = GDALWarp(dsn_outname[0], nullptr,
static_cast<int>(dsn.size()), poSrcDS,
psOptions, nullptr);

GDALWarpAppOptionsFree(psOptions);

CSLDestroy(papszArg);


CPLAssert( hRet != NULL );
for (int si = 0; si < dsn.size(); si++) {
GDALClose( (GDALDataset *)poSrcDS[si] );
Expand Down

0 comments on commit 583489a

Please sign in to comment.