Skip to content

Commit

Permalink
support as low as geos v3.1.0 - closes mapnik#1031
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed Feb 24, 2012
1 parent 3a086b8 commit 21af038
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/input/geos/geos_feature_ptr.hpp
Expand Up @@ -26,6 +26,7 @@

// geos
#include <geos_c.h>
#include <cstdlib>

class geos_feature_ptr
{
Expand Down Expand Up @@ -77,7 +78,10 @@ class geos_wkb_ptr
~geos_wkb_ptr ()
{
if (data_ != NULL)
GEOSFree(data_);
{
// We use std::free here instead of GEOSFree(data_) to support geos 3.1.0
std::free(data_);
}
}

bool is_valid() const
Expand Down

0 comments on commit 21af038

Please sign in to comment.