summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Bronn <jbronn@gmail.com>2009-12-27 08:13:37 +0000
committerJustin Bronn <jbronn@gmail.com>2009-12-27 08:13:37 +0000
commit90f7dfb461df5081545aadd5cbe8d3a70c5e8a2e (patch)
tree8455899dd3bcc58c57c33e8984dd8c7351b74730
parent3201e7b0b19905ccf524211234421dd50dbf469a (diff)
[1.1.X] Fixed #12450 -- `GEOSFree` was really added in GEOS 3.1.1, not 3.1.0. Thanks, jpwatts for the bug report.
Backport or r12004 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12005 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/gis/geos/prototypes/errcheck.py4
1 files 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]