I've added the Unload class prepared by xie with small modifications. You can use Unload::Release() in your test code as the last step to remove all static allocations done by geos. Oh.. you'll have to include "unload.h" too... WARNING: any use of GEOS after call to Unload::Release() is undefined ! --strk;