Skip to content

Commit

Permalink
quick release of gdal's reference to dataset refs mapbox/preprocessor…
Browse files Browse the repository at this point in the history
  • Loading branch information
wilhelmberg committed Mar 22, 2016
1 parent 2a7c91f commit 6c80973
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,9 @@ function reproject(srcpath, dstpath) {

src.close();
options.dst.close();

//safe measure to quickly release gdal's reference to the dataset
//needed if the dataset is processed by another tool immediately afterwards
src = null;
options.dst = null;
}

0 comments on commit 6c80973

Please sign in to comment.