[MacRuby-devel] [MacRuby] #724: malloc warning with bookmarkDataWithContentsOfURL on aliases (was: malloc warning)
MacRuby
ruby-noreply at macosforge.org
Tue May 25 15:27:10 PDT 2010
#724: malloc warning with bookmarkDataWithContentsOfURL on aliases
-----------------------------+----------------------------------------------
Reporter: tvmoore@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: minor | Milestone: MacRuby 0.6
Component: MacRuby | Keywords:
-----------------------------+----------------------------------------------
Description changed by martinlagardette@…:
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/>
More information about the MacRuby-devel
mailing list