When to release row after reloading table data?
<p>This method below works, but I don't know when rowdata should be released.</p>

<pre><code>-(void)refreshTable:(NSMutableArray *) tbdata{
    rowdata=[tbdata retain];
    [tabledata reloadData];
}
</code></pre>

<p>This version below causes an error:</p>

<pre><code>-(void)refreshTable:(NSMutableArray *) tbdata{
    rowdata=[[tbdata retain] autorelease];
    [tabledata reloadData];

}
</code></pre>

<p>As does this version below:</p>

<pre><code>-(void)refreshTable:(NSMutableArray *) tbdata{
    rowdata=[tbdata retain];
    [tabledata reloadData];
    [rowdata release] 
}
</code></pre>

<p>When should I release rowdata? </p>
