Re: Missing CFRetain in AUVParameter.cpp?
Re: Missing CFRetain in AUVParameter.cpp?
- Subject: Re: Missing CFRetain in AUVParameter.cpp?
- From: Robert Grant <email@hidden>
- Date: Mon, 16 Jun 2003 15:55:41 -0400
Yep I'm returning my private copy - thinking that API users would do
the normal retain release thing...
I'll add the extra retain on my side - though that sounds counter to
the convention on how retain/release should be handled. I'm certainly
not going to copy it every time though!
Robert.
On Monday, June 16, 2003, at 03:47 PM, Airy Andri wrote:
How do you create the array you are setting in your
GetParameterValueStrings methods ?
Do you call CFArrayCreate or are you always returning a pointer to a
privately own CFArrayRef ? That could be the problem. You are supposed
to create a new CFArrayRef each time or you should
call CFRetain on it every time you return it.
Airy
Le lundi, 16 juin 2003, ` 20:29 Europe/Paris, Robert Grant a icrit :
I'm getting a crash in ~AUVParameter() when it's releasing
mNamedParams:
if (mNamedParams)
CFRelease (mNamedParams);
However I cannot find a place where this is being retained within
AUVParameter (except in the assignment operator which makes sense for
additional retains but not the first one). I can't believe that I'm
the first to encounter this but I don't understand the code as it
stands...
Robert.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.