xCode 3.2.1 Alien Leak

Posted by Mark on Stack Overflow See other posts from Stack Overflow or by Mark
Published on 2010-02-18T12:45:21Z Indexed on 2010/05/01 22:27 UTC
Read the original article Hit count: 302

Filed under:
|
|

Used code in entire project:

- (void)applicationDidFinishLaunching:(UIApplication *)application {    
     UITabBarController *tb = [[UITabBarController alloc] initWithNibName:nil bundle:nil];
     [window addSubview:tb.view];
     [tb release];

     [window setBackgroundColor:[UIColor blackColor]];
     [window makeKeyAndVisible];
}

When the UITabBarController is added to the window view the following leak is detected bij Instruments:

Leaked Object: Malloc 128 Bytes

Address : 0x391ee70

Size : 128 Bytes

Responsible Library : CoreGraphics

Responsible Frame : open_handle_to_dylib_path

This same issue occurs with UINavigationController, but does not appear with UIViewController.

Specs:

Mac OS X 10.6.2

xCode 3.2.1

Instruments 2.0.1

Compiled for iPhone Simulator 3.1.3 | Debug

© Stack Overflow or respective owner

Related posts about iphone

Related posts about leaks