Ticket #12101: gdal_leak_fix.diff
File gdal_leak_fix.diff, 633 bytes (added by , 15 years ago) |
---|
-
django/contrib/gis/gdal/geometries.py
260 260 srs_ptr = srs_api.clone_srs(srs.ptr) 261 261 elif isinstance(srs, (int, long, basestring)): 262 262 sr = SpatialReference(srs) 263 srs_ptr = sr s_api.clone_srs(sr.ptr)263 srs_ptr = sr.ptr 264 264 else: 265 265 raise TypeError('Cannot assign spatial reference with object of type: %s' % type(srs)) 266 266 capi.assign_srs(self.ptr, srs_ptr)