#724: malloc warning with bookmarkDataWithContentsOfURL on aliases
-----------------------------+----------------------------------------------
Reporter: tvmo...@… | Owner: lsansone...@…
Type: defect | Status: new
Priority: minor | Milestone: MacRuby 0.6
Component: MacRuby | Keywords:
-----------------------------+----------------------------------------------
Description changed by martinlagarde...@…:
Old description:
> framework 'cocoa'
>
> p = NSURL.fileURLWithPath(File.expand_path("~/Desktop/test"))
> data = NSURL.bookmarkDataWithContentsOfURL(p, error:nil)
>
> macruby(420,0x7fff70770be0) malloc: reference count underflow for
> 0x2004b9800, break on auto_refcount_underflow_error to debug.
New description:
Create a Mac OS alias (not a symbolic link) named test on the Desktop, run
the following script:
{{{
#!ruby
framework 'cocoa'
p = NSURL.fileURLWithPath(File.expand_path("~/Desktop/test"))
data = NSURL.bookmarkDataWithContentsOfURL(p, error:nil)
}}}
It will result in this warning:
{{{
macruby(420,0x7fff70770be0) malloc: reference count underflow for
0x2004b9800, break on auto_refcount_underflow_error to debug.
}}}
--
--
Ticket URL: <http://www.macruby.org/trac/ticket/724#comment:2>
MacRuby <http://macruby.org/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel