title: Analyzer warning about incorrect decrement of reference count
body: <p>I just installed Xcode 4 and opened an earlier version of my app. The analyzer is reporting for this line:</p>
  
  <pre><code>[self.myViewControllerObject release];
  </code></pre>
  
  <blockquote>
    <p>incorrect decrement of the reference count of an object that is not owned at this point by the caller</p>
  </blockquote>
  
  <p>I didn't enable ARC for my project.</p>
  
  <p>When I analyze v2.0 of my app in Xcode 3.2.5, it doesn't show any potential error.</p>
  
  <p>Header:</p>
  
  <pre><code>        @class MyViewController;
  
          MyViewController *myViewControllerObject;
  
          @property ( nonatomic , retain )  MyViewController *myViewControllerObject; 
  </code></pre>
  
  <p>Implementation:</p>
  
  <pre><code>        #import "MyViewController.h"
  
          @synthesize myViewControllerObject;
  </code></pre>
  
  <p>When a button is clicked I have: </p>
  
  <p><strong>TRY 1:</strong></p>
  
  <pre><code>self.myViewControllerObject = [[MyViewController alloc]initWithNibName:@"MyViewController" bundle:nil]; 
  
  [self.navigationController pushViewController:self.myViewControllerObject animated:YES];
  
  
  [self.myViewControllerObject release];
  </code></pre>
  
  <p><strong>TRY 2:</strong></p>
  
  <pre><code>MyViewController *temp = [[MyViewController alloc]initWithNibName:@"MyViewController" bundle:nil];  
  
  self.myViewControllerObject = temp;
  
  [temp release];
  
  [self.navigationController pushViewController:self.myViewControllerObject animated:YES];
  
  
  [self.myViewControllerObject release];
  </code></pre>
  
  <p><strong>TRY 3:</strong></p>
  
  <pre><code>self.myViewControllerObject = [[MyViewController alloc]initWithNibName:@"MyViewController" bundle:nil]; 
  
  [self.navigationController pushViewController:self.myViewControllerObject animated:YES];
  </code></pre>
  
  <p>In the <code>dealloc</code> method, I release it:</p>
  
  <pre><code>[self.myViewControllerObject release];
  </code></pre>