Ticket #13843: 13843.patch
File 13843.patch, 1.2 KB (added by , 14 years ago) |
---|
-
django/contrib/gis/geos/geometry.py
109 109 Destroys this Geometry; in other words, frees the memory used by the 110 110 GEOS C++ object. 111 111 """ 112 if self._ptr: capi.destroy_geom(self._ptr) 112 try: 113 if self._ptr: capi.destroy_geom(self._ptr) 114 except AttributeError: 115 # Thread is dying, rest in peace. 116 pass 113 117 114 118 def __copy__(self): 115 119 """ -
django/contrib/gis/gdal/geometries.py
132 132 133 133 def __del__(self): 134 134 "Deletes this Geometry." 135 if self._ptr: capi.destroy_geom(self._ptr) 135 try: 136 if self._ptr: capi.destroy_geom(self._ptr) 137 except AttributeError: 138 # Thread is dying, rest in peace. 139 pass 136 140 137 141 # Pickle routines 138 142 def __getstate__(self):