title: java binding with a free c function: how to correctly free an object
body: <p>Ok, there is a C method called on a pointer which frees the memory area.
  I don't want my java binding user to explicitely call this method, because in java it makes no sense and this is a basically a data structure.</p>
  
  <p>So, I just made a finalize() override putting there the c call.
  Anyway people say it is not good to rely on finalize...do you have any better idea?</p>