mirror of
https://github.com/django/django.git
synced 2025-11-23 12:26:57 +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
|
|
@ -127,7 +127,7 @@ class OGRGeometry(GDALBase):
|
|||
|
||||
def __del__(self):
|
||||
"Deletes this Geometry."
|
||||
if self._ptr:
|
||||
if self._ptr and capi:
|
||||
capi.destroy_geom(self._ptr)
|
||||
|
||||
# Pickle routines
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue