title: Xcode shows memory leak, but Instruments does not
body: <p>When I run my app from Xcode, it is clear that I have a memory leak:</p>
  
  <p><a href="https://i.stack.imgur.com/w9caK.png" rel="noreferrer"><img src="https://i.stack.imgur.com/w9caK.png" alt="enter image description here"></a></p>
  
  <p>When I present a custom ViewController the memory increases, but when I dismiss it it does not go back down.</p>
  
  <p>So I also checked using Instruments' Allocation tool, but that tells a different story:</p>
  
  <p><a href="https://i.stack.imgur.com/GQKzm.png" rel="noreferrer"><img src="https://i.stack.imgur.com/GQKzm.png" alt="enter image description here"></a></p>
  
  <p>As you can see, Instruments shows spikes when I present that ViewController, but memory usage drops back to previous levels when it has been dismissed.</p>
  
  <p>I have checked my code at least 15 times and I personally cannot find any memory leaks and thus agree with Instruments. I also implemented the <code>deinit</code> function in all my objects that would get allocated like so:</p>
  
  <pre><code>deinit {
    print("Deinnited \(id)")
  }
  </code></pre>
  
  <p>And all objects printed out to the console as expected.</p>
  
  <p>What could be going on? I am using:</p>
  
  <ul>
  <li>iOS 9.0</li>
  <li>XCode Version 7.0 (7A220)</li>
  <li>Swift 2.1</li>
  </ul>
  
  <p>Both the schemas for Run and Profile is in "debug"</p>