title: iPhone how to properly handle Core Foundation references with ARC?
body: <p>I'm very new to the core foundation programming and would like to know what I'm thinking of doing is correct. I'm using ARC, and am not sure of how it handles non-object references. I need to save a reference to a sample buffer and use it later within the app. Is this possible, or <strong>will the sample buffer be deallocated prior to that?</strong></p>
  
  <p><strong>Will using self.sampleBuffer = sampleBuffer_; cause memory leak?</strong> Do I need to add a manual call to release after this call?</p>
  
  <pre><code>@property (nonatomic)CMSampleBufferRef sampleBuffer;
  
  - (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer_ fromConnection:(AVCaptureConnection *)connection
  {
      //does this cause memory leak?
      self.sampleBuffer = sampleBuffer_;
  }
  </code></pre>