Please sign in to comment.
[GDAL provider] Revise how referencing counting is done on mGdalBaseD…
…ataset initBaseDataset() used to take a reference in the case where mGdalDataset == mGdalBaseDataset (non warped VRT) and we dropped it when closing the dataset, which was OK However buidPyramids() failed to acquire this reference. There was no negative consequence as GDALDerefenceDataset() just decremented a reference count, and GDALClose() ignores it for a non-shared dataset, however this was an incorrected use It is simpler for the mind to call GDALDerefenceDataset() only when mGdalBaseDataset != mGdalDataset.
- Loading branch information
Showing with 8 additions and 12 deletions.