Ticket #13843: GEOSContextHandle.patch
File GEOSContextHandle.patch, 606 bytes (added by , 13 years ago) |
---|
-
/home/mudblood/
old new 11 11 self.ptr = lgeos.initGEOS_r(notice_h, error_h) 12 12 13 13 def __del__(self): 14 if self.ptr: lgeos.finishGEOS_r(self.ptr) 14 try: 15 if self.ptr: lgeos.finishGEOS_r(self.ptr) 16 except AttributeError: 17 pass 15 18 16 19 # Defining a thread-local object and creating an instance 17 20 # to hold a reference to GEOSContextHandle for this thread.