#724: malloc warning with bookmarkDataWithContentsOfURL on aliases
-----------------------------+----------------------------------------------
Reporter: tvmo...@… | Owner: lsansone...@…
Type: defect | Status: closed
Priority: minor | Milestone: MacRuby 0.6
Component: MacRuby | Resolution: invalid
Keywords: |
-----------------------------+----------------------------------------------
Changes (by martinlagarde...@…):
* status: new => closed
* resolution: => invalid
Comment:
This is a bug in the OS actually:
{{{
$> cat t.m
#import <Foundation/Foundation.h>
int main(void)
{
NSURL *url = [NSURL fileURLWithPath:@"/tmp/test"];
NSData *data = [NSURL bookmarkDataWithContentsOfURL:url error:nil];
printf("-> %p\n", data);
return 0;
}
$> gcc /tmp/t.m -o /tmp/t -framework Foundation -fobjc-gc
$> ./t
t(61211,0x7fff70982be0) malloc: reference count underflow for 0x20000f580,
break on auto_refcount_underflow_error to debug.
-> 0x20000f540
$>
}}}
Well I say bug, but it's just a simple warning. It has been reported
anyway :-).
--
Ticket URL: <http://www.macruby.org/trac/ticket/724#comment:4>
MacRuby <http://macruby.org/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel