This is the header:
@interface ForumBrowserAppDelegate : NSObject <UIApplicationDelegate> {
ForumSelection *forumSelection;
UIWindow *window;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet ForumSelection *forumSelection;
(I'm not sure what the nonatomic does, is it something to do with making it safe with multiple threads, do i really need it?)
In the main file:
- (void)applicationDidFinishLaunching:(UIApplication *)application {
// Override point for customization after app launch
[window addSubview:forumSelection.view]; //<<<< Instruments highlights this line
[forumSelection release];
[window makeKeyAndVisible];
}
Originally I didn't have the property thing in the header or the [forumSelection release];
So I thought that might be why it leaks however Instruments still says this leaks and I have no idea why?