title: memory leak issue
body: <p>am getting memory leak in the following code..pls help me to solve this..</p>
  
  <pre><code>if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
      //iPad specific code.
      universalApp=1;
      NSLog(@"ipad started.......");
      // Override point for 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];
  </code></pre>