memory crash when i try to stopAnimating UIActivityIndicatorView
<p>When ever i am trying to update the UIActivityIndicatorView from thread . the app is getting crashed by throwing an exception 
 modifying layer that is being finalized - 0x7e177fd0
-[CALayer removeAnimationForKey:]: message sent to deallocated instance 0x7e177fd0 . 
when i try track the memory leaks form the mallocDebugger tool . </p>

<p>this crash is not happening at all the time happening 1 out of 10 </p>

<p>please help me out rom this memory issue </p>

<p>NSAutoreleasePool *pool = [[NSAutoreleasePool alloc]init];</p>

<pre><code>[autoRechargeCell addSubview:activityIndicator];
[self.activityIndicator startAnimating];
   if( [PennyTalkAPI getBalanceInfoForAccount:appDelegate.accountNumber withPIN:appDelegate.pinNumber])
{   
    [autoRechargeCell.switchField setOn:[[NSUserDefaults standardUserDefaults] boolForKey:@"AutoRecharge"]];
    [self.activityIndicator stopAnimating];   &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; 

}
else
{
    [self.activityIndicator stopAnimating];
}

[pool release]; 
</code></pre>

<p>This is the code i have written </p>
