AudioDriverExamples:NullAudio.c: retain on returned CFStringRef
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