title: ARC memory leaks
body: <p>I am experiencing memory leaks linked to NSMutableArray's in a project configured to use ARC, which I thought was supposed to handle these things for you.</p>
  
  <p>The following code is triggering leaks of NSNumbers:</p>
  
  <pre><code>NSMutableArray *myArray = [[NSMutableArray alloc] init];
  
  NSNumber  *myNumber = [NSNumber numberWithFloat:10];
  
  [myArray addObject:myNumber];
  </code></pre>
  
  <p>Running the last line gives the following in the debugger:</p>
  
  <blockquote>
    <p>objc[1106]: Object 0x765ffe0 of class __NSCFNumber autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug</p>
  </blockquote>
  
  <p>Aside from that, the object appears to be correctly added to the mutable array,</p>
  
  <p>Am I doing something obvious wrong?</p>
  
  <p>Note: There is one class in the project which I could not get to work with ARC, and so I excluded it from ARC using the compiler flag -fno-objc-arc. However, the leaks are occurring in other classes that are using ARC. Not sure if that is related.</p>
  
  <p>Many thanks for your help.</p>