iphone - memory leak issue -


am getting memory leak in following code..pls me solve this..

if (ui_user_interface_idiom() == uiuserinterfaceidiompad) {     //ipad specific code.     universalapp=1;     nslog(@"ipad started.......");     // override point customization after application launch     window.frame = cgrectmake(0, 0, 768, 1004);     //window.frame = cgrectmake(0, 0,320,460);      mainpagecontroller = [[mainpagecontroller alloc] initwithnibname:@"mainpagecontroller" bundle:nil];     //  [mainpagecontroller.view setframe:cgrectmake(0, 20, 320, 460)];      [window addsubview:mainpagecontroller.view];//memory leak      [window makekeyandvisible]; 

i don't see leak there, assuming you're releasing mainpagecontroller in -applicationwillterminate: or app delegate's -dealloc. what's problem?


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -