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