iPhone objective-c autoreleasing leaking

Posted by okami on Stack Overflow See other posts from Stack Overflow or by okami
Published on 2010-03-31T16:54:14Z Indexed on 2010/03/31 17:03 UTC
Read the original article Hit count: 232

I do this:

NSString *fullpath = [[NSBundle mainBundle] pathForResource:@"text_file" ofType:@"txt"];

Why the following message appear? Is my code leaking?

2010-03-31 13:44:18.649 MJIPhone[2175:207] *** _NSAutoreleaseNoPool(): Object 0x3909ba0 of class NSPathStore2 autoreleased with no pool in place - just leaking
Stack: (0x1656bf 0xc80d0 0xcf2ad 0xcee0e 0xd3327 0x2482 0x2426)
2010-03-31 13:44:18.653 MJIPhone[2175:207] *** _NSAutoreleaseNoPool(): Object 0x390b0b0 of class NSPathStore2 autoreleased with no pool in place - just leaking
Stack: (0x1656bf 0xc80d0 0xc7159 0xd0c6f 0xd3421 0x2482 0x2426)
2010-03-31 13:44:18.672 MJIPhone[2175:207] *** _NSAutoreleaseNoPool(): Object 0x390d140 of class NSCFString autoreleased with no pool in place - just leaking
Stack: (0x1656bf 0xc6e62 0xcec1b 0xd4386 0x24ac 0x2426)

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about memory-leaks