[geos-devel] GEOS 2.2.2 C API + Reference counter
Mateusz Loskot
mateusz at loskot.net
Sat Jul 1 07:23:33 EDT 2006
Hi,
As we talked yesterday, I applied small changes
with reference counter to make
initGEOS/finishGEOS more safe.
I applied those changes to GEOS 2.2.2.
Here is the package with geos_c.h/cpp files:
http://mateusz.loskot.net/tmp/geos-capi-refcounted.tar.bz2
Original version of GEOS 2.2.2 crashes in following situation:
initGEOS(NULL, NULL);
finishGEOS();
finishGEOS(); // <--- BUM!
Now, changes described above, make it safe to call init/finishGEOS
multiple time, no matter in what order.
I think this small patch could be applied to GEOS 2.2.2 as a backport.
If case of comments, just give me a note.
Cheers
--
Mateusz Loskot
http://mateusz.loskot.net
More information about the geos-devel
mailing list