title: Using Apple autorelease pools without Objective-C
body: <p>I am developing an application that needs to work on Linux, Windows and Mac OS X. To that purpose, I am using C++ with Qt.</p>
  <p>For many reasons, on Mac OS X, I need to use CoreFoundation functions (such as <code>CFBundleCopyBundleURL</code>) that creates core objects that need to be released with <code>CFRelease</code>. But doing so generate a lots of these warnings:</p>
  <pre><code>*** __NSAutoreleaseNoPool(): Object 0x224f7e0 of class NSURL autoreleased with no pool in place - just leaking
  </code></pre>
  <p>All the code I've seen concerning these autorelease pools is written in Objective-C. Does anybody know how to create/use autorelease pools in C or C++?</p>