mirror of
https://github.com/django/django.git
synced 2025-09-03 17:21:00 +00:00
Fixed #13843 -- Prevented AttributeError during geometry objects deletion
This commit is contained in:
parent
b011afe6c8
commit
8f334e55be
7 changed files with 7 additions and 7 deletions
|
@ -97,7 +97,7 @@ class SpatialReference(GDALBase):
|
|||
|
||||
def __del__(self):
|
||||
"Destroys this spatial reference."
|
||||
if self._ptr:
|
||||
if self._ptr and capi:
|
||||
capi.release_srs(self._ptr)
|
||||
|
||||
def __getitem__(self, target):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue