• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AudioDriverExamples:NullAudio.c: retain on returned CFStringRef
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AudioDriverExamples:NullAudio.c: retain on returned CFStringRef


  • Subject: AudioDriverExamples:NullAudio.c: retain on returned CFStringRef
  • From: Andrew White <email@hidden>
  • Date: Fri, 10 Apr 2015 15:56:52 +1000

In the AudioDriverExamples sample code, in NullAudio.c, in NullAudio_GetBoxPropertyData, when returning the box name via kAudioObjectPropertyName, we retain the CFStringRef returned.

Why is this done?  Is this not the responsibility of the receiver?

And if it is to protect against us releasing our data, why is CFRetain called outside the lock?

--
Andrew White
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: AudioDriverExamples:NullAudio.c: retain on returned CFStringRef
      • From: Raveeshwara S <email@hidden>
  • Prev by Date: Enabling volume balance control
  • Next by Date: Re: AudioDriverExamples:NullAudio.c: retain on returned CFStringRef
  • Previous by thread: Re: Enabling volume balance control
  • Next by thread: Re: AudioDriverExamples:NullAudio.c: retain on returned CFStringRef
  • Index(es):
    • Date
    • Thread