• 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
CFRelease issue with preset names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: CFRelease issue with preset names
      • From: William Stewart <email@hidden>
References: 
 >one more RemoteIO question (From: Brad Garton <email@hidden>)
 >Re: one more RemoteIO question (From: William Stewart <email@hidden>)
 >Re: one more RemoteIO question (From: Brad Garton <email@hidden>)
 >Re: one more RemoteIO question -- stoopid me! (From: Brad Garton <email@hidden>)

  • Prev by Date: Re: one more RemoteIO question -- stoopid me!
  • Next by Date: AudioDeviceGetProperty no longer working on 10.6 ?
  • Previous by thread: Re: one more RemoteIO question -- stoopid me!
  • Next by thread: Re: CFRelease issue with preset names
  • Index(es):
    • Date
    • Thread