1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 16:19:43 +02:00

Fix crash opening menu in some AU effects

This commit is contained in:
Paul Licameli 2017-02-23 22:52:17 -05:00
parent e8ac12160a
commit 7808033421

View File

@ -245,7 +245,7 @@ void AudioUnitEffectsModule::LoadAudioUnitsOfType(OSType inAUType,
result = AudioComponentGetDescription(component, &found);
if (result == noErr)
{
CFStringRef cfName;
CFStringRef cfName{};
result = AudioComponentCopyName(component, &cfName);
CFunique_ptr<const __CFString> uName{ cfName };
@ -760,7 +760,7 @@ void AudioUnitEffectImportDialog::OnOk(wxCommandEvent & WXUNUSED(evt))
continue;
}
CFDataRef xml;
CFDataRef xml{};
SInt32 error;
Boolean res = CFURLCreateDataAndPropertiesFromResource(kCFAllocatorDefault,
url.get(),
@ -1673,7 +1673,7 @@ bool AudioUnitEffect::LoadFactoryPreset(int id)
OSStatus result;
// Retrieve the list of factory presets
CFArrayRef array;
CFArrayRef array{};
UInt32 dataSize = sizeof(CFArrayRef);
result = AudioUnitGetProperty(mUnit,
kAudioUnitProperty_FactoryPresets,
@ -1724,7 +1724,7 @@ wxArrayString AudioUnitEffect::GetFactoryPresets()
wxArrayString presets;
// Retrieve the list of factory presets
CFArrayRef array;
CFArrayRef array{};
UInt32 dataSize = sizeof(CFArrayRef);
result = AudioUnitGetProperty(mUnit,
kAudioUnitProperty_FactoryPresets,