title: UIViewController not being deallocated
body: <p>I'm trying to have a custom UIViewController class get popped to the navigation controller, and then when that popped controller is no longer being viewed, have it be deallocated. However, the view controller is sticking around and I'm not sure why. Any help would be appreciated.</p>
  
  <p>Interface:</p>
  
  <pre><code>@property (nonatomic, retain) CustomViewController *viewcontroller;
  </code></pre>
  
  <p>Implementation:</p>
  
  <pre><code>CustomViewController *vc = [[CustomViewController alloc] initWithNibName:@"CustomViewController" bundle:nil];
  
  self.CustomViewController = vc;
  
  [vc release]; // Release this after setting property to avoid memory leak.
  
  [[self navigationController] pushViewController:[self.CustomViewController autorelease] animated:YES];
  
  // Push in the next view. My thinking is that since pushViewController retains this view, if I autorelease when I send the view, the only thing still retaining the view when it shows up will be the navigation controller, and thus when it is bounced back off of the navigation stack, it should be deallocated. But apparently that's not happening..
  </code></pre>