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
Post a Comment