Note that there are some explanatory texts on larger screens.

plurals
  1. POiOS memory leak on app loading
    primarykey
    data
    text
    <p>I'm trying to find a memory leak i have on my app. When the application loads i instantly get a memory leak that looks like that in instuments</p> <p><img src="https://i.stack.imgur.com/uj0cR.png" alt="leak"></p> <p><img src="https://i.stack.imgur.com/l9j23.png" alt="cycles and roots"></p> <p>how can i debug that ? it doesn't reproduce it self no matter how long i run my app or what i do, only when the applications loads.</p> <p>and here is my code in the delegate</p> <pre><code>- (void)applicationDidFinishLaunching:(UIApplication *)application { tabBarController = [[UITabBarController alloc] init]; search = [[iPhoneView alloc] initWithNibName:@"iPhoneView" bundle:nil]; homeNavigationController = [[UINavigationController alloc] initWithRootViewController:search]; favouritesNavigationController = [[UINavigationController alloc] init]; favoritesViewController = [[FavoritesViewController alloc]init]; [favouritesNavigationController pushViewController:favoritesViewController animated:NO]; aboutUsViewController =[[AboutUsViewController alloc] init]; UITabBarItem *item = [[UITabBarItem alloc] initWithTitle:@"toolbox" image:[UIImage imageNamed:@"aboutus"] tag:0]; aboutUsViewController.tabBarItem = item; [item release]; UITabBarItem *item2 = [[UITabBarItem alloc] initWithTitle:@"αγαπημένα" image:[UIImage imageNamed:@"favorites"] tag:0]; favouritesNavigationController.tabBarItem = item2; [item2 release]; NSArray *tabBarControllerCollection = [NSArray arrayWithObjects:homeNavigationController,favouritesNavigationController,aboutUsViewController,nil]; [tabBarController setViewControllers:tabBarControllerCollection animated:NO]; [window setRootViewController:tabBarController]; [tabBarControllerCollection release]; //added that for the leaks //[window addSubview:tabBarController.view]; for the warning thing about window and root view controller [window makeKeyAndVisible]; } - (void)dealloc { [tabBarController release]; [search release]; [favoritesViewController release]; [favouritesNavigationController release]; [aboutUsViewController release]; [window release]; [super dealloc]; } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload