You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After creating a SpatialReference with gdal.CreateSpatialReference(), the SpatialReference cannot be destroyed without a panic. The error message is "error for object 0x760f760: pointer being freed was not allocated".
I'm not sure why this won't work since the SpatialReference seems to store the handle from the underlying OSRNewSpatialReference function and use it in the call to OSRDestroySpatialReference:
sref := gdal.CreateSpatialReference("")
... use the spatial reference ...
sref.Destroy() // panics
The text was updated successfully, but these errors were encountered:
After creating a SpatialReference with gdal.CreateSpatialReference(), the SpatialReference cannot be destroyed without a panic. The error message is "error for object 0x760f760: pointer being freed was not allocated".
I'm not sure why this won't work since the SpatialReference seems to store the handle from the underlying OSRNewSpatialReference function and use it in the call to OSRDestroySpatialReference:
The text was updated successfully, but these errors were encountered: