support as low as geos v3.1.0 - closes #1031

This commit is contained in:
Dane Springmeyer 2012-01-17 01:48:02 -05:00
parent 46d53cb40d
commit 2a64b478ef

View file

@ -26,6 +26,7 @@
// geos
#include <geos_c.h>
#include <cstdlib>
class geos_feature_ptr
{
@ -77,7 +78,10 @@ public:
~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