tutorial-ffi: add example of a custom destructor