support as low as geos v3.1.0 - closes #1031
This commit is contained in:
parent
46d53cb40d
commit
2a64b478ef
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue