When, say, a OGR::Point (that wraps a FFI::Pointer in @c_pointer) is garbage collected, that FFI::Pointer needs to be released using OGR_G_DestroyGeometry().
We can do this using an FFI::AutoPointer and an RBS interface of HasAutoPointer[P].
Originally posted by Steve Loveless (@turboladen) in #27 (comment)