From f58fb383fbbcec9f7482b81388710abbf0ad0df6 Mon Sep 17 00:00:00 2001 From: Justin Bronn Date: Sun, 27 Dec 2009 08:07:08 +0000 Subject: [PATCH] Fixed #12450 -- `GEOSFree` was really added in GEOS 3.1.1, not 3.1.0. Thanks, jpwatts for the bug report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12004 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/gis/geos/prototypes/errcheck.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/contrib/gis/geos/prototypes/errcheck.py b/django/contrib/gis/geos/prototypes/errcheck.py index c5037c1e21..0d5e9e24fc 100644 --- a/django/contrib/gis/geos/prototypes/errcheck.py +++ b/django/contrib/gis/geos/prototypes/errcheck.py @@ -7,8 +7,8 @@ from django.contrib.gis.geos.libgeos import lgeos, GEOS_VERSION # Getting the `free` routine used to free the memory allocated for # string pointers returned by GEOS. -if GEOS_VERSION >= (3, 1, 0): - # In versions 3.1 and above, `GEOSFree` was added to the C API +if GEOS_VERSION >= (3, 1, 1): + # In versions 3.1.1 and above, `GEOSFree` was added to the C API # because `free` isn't always available on all platforms. free = lgeos.GEOSFree free.argtypes = [c_void_p]