Sept. 4, 2016
2:40 p.m.
On Fri, Sep 2, 2016 at 10:04 PM, Pierce Ng <pierce@samadhiweb.com> wrote:
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
Thanks Pierce. I've loaded DemoFFI and browsing it now. autorelease looks like part of what I need. I guess it is #finalize where I should call the libraryAPI_free() function? cheers -ben