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
This commit is contained in:
Justin Bronn 2009-12-27 08:07:08 +00:00
parent adc6113515
commit f58fb383fb
1 changed files with 2 additions and 2 deletions

View File

@ -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 # Getting the `free` routine used to free the memory allocated for
# string pointers returned by GEOS. # string pointers returned by GEOS.
if GEOS_VERSION >= (3, 1, 0): if GEOS_VERSION >= (3, 1, 1):
# In versions 3.1 and above, `GEOSFree` was added to the C API # In versions 3.1.1 and above, `GEOSFree` was added to the C API
# because `free` isn't always available on all platforms. # because `free` isn't always available on all platforms.
free = lgeos.GEOSFree free = lgeos.GEOSFree
free.argtypes = [c_void_p] free.argtypes = [c_void_p]