1
0
mirror of https://github.com/django/django.git synced 2025-07-05 10:19:20 +00:00

[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
This commit is contained in:
Justin Bronn 2009-12-27 08:13:37 +00:00
parent 3201e7b0b1
commit 90f7dfb461

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]