-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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
1 changed file
with
8 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters