title: UICachedDeviceWhiteColor and NSAutoRelease for table cell mem leaks
body: <p>I have a memory leak that displays UICachedDeviceWhiteColor.  I'm not using UICachedDeviceWhiteColor anywhere and a search on it turns up people saying this is a bug in the iPhone-SDK.  I found this blog entry:
  <a href="http://piezoelectrics.blogspot.com/2009/02/uicacheddevicewhitecolor-leak-in-iphone.html" rel="nofollow noreferrer">http://piezoelectrics.blogspot.com/2009/02/uicacheddevicewhitecolor-leak-in-iphone.html</a></p>
  
  <p>but I can't find </p>
  
  <pre><code>#import "NSAutoreleasePool.h"  
  </code></pre>
  
  <p>I get an "error: NSAutoReleasePool.h: no such file or directory".  Is there a fix for this memory leak or a correct way to allocate table cells from nibs?</p>
  
  <p>Here's how I'm currently doing it:</p>
  
  <pre><code> - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {   
  
  UITableViewCell *cell = nil;    
  cell = [tableView dequeueReusableCellWithIdentifier:@"CellNameIdentifier"];
  
  if (cell == nil) {
  [[NSBundle mainBundle] loadNibNamed:@"CellName" owner:self options:nil];
  //cellName is IBOutlet to XIB's tablecell.  I reference it several times in this calss
  cell = cellName; 
  }
  
  return cell;
  </code></pre>
  
  <p>}</p>
  
  <p>I don't see an alloc here so why would there be a mem leak?  Could this be a problem:</p>
  
  <pre><code>@property (nonatomic, retain) IBOutlet UITableViewCell *cellName;
  </code></pre>