The free function pointer is not honored by MacRuby, yet. But it can be done :) Can you file a ticket?
Thanks, Laurent On Sat, May 28, 2011 at 8:07 AM, Watson <watson1...@gmail.com> wrote: > Hi, > I think that MacRuby needs to call a deallocating function which specified > with Data_Wrap_Struct() macro. > > > Thank you. > > 日付:2011年5月28日土曜日、時刻:23:13、差出人:Guido Soranzio: > > While experimenting with array controllers and NSTableViews, I was facing > huge > memory leaks. I thought the culprits were the Cocoa bindings but I have > discovered > that the Nokogiri gem is what is causing them. > > The following little test doesn't leak under Ruby 1.9.2 compiled with > MacPorts, > so it seems there is a problem with the underlying linking with libxml2 > instead. > > -------------------------------------------------------------- > require 'rubygems' > require 'nokogiri' > > loop do > doc = Nokogiri::HTML('<html><body><p>TEST </p></body></html>') > p = doc.css("p")[0].text > print p > end > -------------------------------------------------------------- > > > > -- > Guido > > > > > _______________________________________________ > MacRuby-devel mailing list > MacRuby-devel@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > > _______________________________________________ > MacRuby-devel mailing list > MacRuby-devel@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel