Won't reassigning a UITableViewController's tableView property cause a leak?
<p>I created a subclass of UITableView and wanted to use it with a UITableViewController to get the benefits of auto-scrolling when the keyboard appears. In the loadView for my view controller (derived from UITableViewController) I did the following:</p>

<pre><code>- (void)loadView
{
    [super loadView];
    self.tableView = [[MyCustomTableView alloc] initWithFrame:[UIScreen mainScreen].applicationFrame style:UITableViewStyleGrouped];
    self.tableView.delegate = self;
    self.tableView.dataSource = self;
}
</code></pre>

<p>Shouldn't this cause a leak with whatever <code>self.tableView</code> was referencing before the reassignment? I ran Build And Analyse and it didn't report it as a leak.</p>

<p>However, if I try to "be good"...</p>

<pre><code>- (void)loadView
{
    [super loadView];
    [self.tableView release];
    // reassign code...
}
</code></pre>

<p>...all sorts of nasty crashes happen when my view is displayed. Can anyone explain to me whether simple reassignment causes a leak and, if so, how to do this properly?</p>

<p>Thanks in advance.</p>
