CFRelease issue with preset names
CFRelease issue with preset names
- Subject: CFRelease issue with preset names
- From: "contact" <email@hidden>
- Date: Sun, 18 Apr 2010 17:07:53 +0100
Hi guys, I'm having an issue with just one host, and I'm a little worried
whether my apparent 'fix.'
I'm grabbing a name from my program store using the following in the
constructor:
('i' is preset loop)
PresetsAU[i].presetName = CFStringCreateWithCString(NULL,
pDSP->programData.programs[i].name, kCFStringEncodingISOLatin1 );
In Digital Performer (I don't have it, but someone has informed me) it
crashes in the destructor with CFRelease (from the crash log)
If I remove the following from the destructor...
CFRelease (PresetsAU[i].presetName);
...then all is fine.
I'm not convinced that it's correct, but it stopped the crashing
immediately.
Is this OK to do?
Cheers,
Dave
_______________________________________________
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