On Fri, Sep 02, 2016 at 12:40:06PM +0800, Ben Coman wrote: > Referring to the example show_clang_version() below, cleanup is done > with clang_disposeString(). How does UFFI hook into the object > finalisation mechanism to call this when the object is garage > collected.
Ben, see if this addresses your query: http://www.samadhiweb.com/blog/2016.03.12.demoffi.html Pierce