Exemple #1
0
 def __del__(self):
     "Releases a reference to this object."
     if self._ptr and capi:
         capi.destroy_feature(self._ptr)
Exemple #2
0
 def __del__(self):
     "Releases a reference to this object."
     if self._ptr:
         capi.destroy_feature(self._ptr)
from django.contrib.gis.gdal.base import GDALBase
Exemple #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
Exemple #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