When I attempt to build and run with absolutely nothing, Instruments reports no leaks.
When I attempt to build and run just this, Instruments reports a single leak.
When I attempt to build and run this, I still get a single leak.
What is leaking in the second and third bit of code? The third example releases everything, so I don't understand how it's possible for it to leak anything.
It says the responsible library is CoreGraphics and the responsible frame is "open_handle_to_dylib_path".
Code:
- (void)applicationDidFinishLaunching:(UIApplication *)application
{
}
When I attempt to build and run just this, Instruments reports a single leak.
Code:
- (void)applicationDidFinishLaunching:(UIApplication *)application
{
navigationController = [[UINavigationController alloc] init];
[window addSubview:navigationController.view];
}
When I attempt to build and run this, I still get a single leak.
Code:
- (void)applicationDidFinishLaunching:(UIApplication *)application
{
navigationController = [[UINavigationController alloc] init];
[window addSubview:navigationController.view];
[navigationController release];
[window release];
}
What is leaking in the second and third bit of code? The third example releases everything, so I don't understand how it's possible for it to leak anything.
It says the responsible library is CoreGraphics and the responsible frame is "open_handle_to_dylib_path".