Created
August 28, 2013 21:55
-
-
Save tobych/6371825 to your computer and use it in GitHub Desktop.
Towards monkey patching my way around https://code.djangoproject.com/ticket/13843
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def patched__del__(self): | |
if self.ptr: lgeos.finishGEOS_r(self.ptr) | |
import django | |
django.contrib.gis.geos.prototypes.threadsafe.GEOSContextHandle.__del__ = patched__del__ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment