Potential leak when calling addSubview [iPhone]
<p>I'm making an app that changes between many XIBs. Although Leaks tool doesn't call it out, whenever I load a new view, the program's memory footprint gets larger and larger.</p>

<p>If I comment out:</p>

<pre><code>[self.view addSubview:currentView.view];
</code></pre>

<p>the program's memory use doesn't change.</p>

<p>Relevant code:</p>

<pre><code>- (void)setPage{
[currentView release]; //retained
switch (pageNumber) {
    case 0:
        currentView = [[TheViewController alloc]
                       initWithNibName:@"PageX"
                       bundle:nil];
        break;
    ///Page 1, Page2, etc.
}
for (clearingView in [self.view subviews]) {
    [clearingView removeFromSuperview];
    //[clearingView release]; = crash
}
[self.view addSubview:currentView.view]; //Leaky
}
</code></pre>

<p>I'm using one view controller.</p>
