Potential leak of an object allocated

Posted by idober on Stack Overflow See other posts from Stack Overflow or by idober
Published on 2010-06-07T21:25:30Z Indexed on 2010/06/08 1:32 UTC
Read the original article Hit count: 172

Filed under:
|

Using the build and analyze of XCode I saw i have a memory leak in my code:

- (NSString *) doIt
{
    NSString *var = [[NSString alloc] init];

    return var;
}

This is of course a simplified snippet of my problem

where do i release the object?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about memory-leaks