Skip to content

Commit

Permalink
Fixed #12450 -- GEOSFree was really added in GEOS 3.1.1, not 3.1.0.…
Browse files Browse the repository at this point in the history
… Thanks, jpwatts for the bug report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12004 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
jbronn committed Dec 27, 2009
1 parent adc6113 commit f58fb38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django/contrib/gis/geos/prototypes/errcheck.py
Expand Up @@ -7,8 +7,8 @@

# 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]
Expand Down

0 comments on commit f58fb38

Please sign in to comment.