Example #1
0
 def __del__(self):
     "Releases a reference to this object."
     if self._ptr and capi:
         capi.destroy_feature(self._ptr)
Example #2
0
 def __del__(self):
     "Releases a reference to this object."
     if self._ptr:
         capi.destroy_feature(self._ptr)
Example #3
0
from django.contrib.gis.gdal.base import GDALBase
Example #4
0
 def __del__(self):
     "Releases a reference to this object."
     try:
         capi.destroy_feature(self._ptr)
     except (AttributeError, TypeError):
         pass  # Some part might already have been garbage collected
Example #5
0
 def __del__(self):
     "Releases a reference to this object."
     try:
         capi.destroy_feature(self._ptr)
     except (AttributeError, TypeError):
         pass  # Some part might already have been garbage collected