mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 08:53:08 +01:00
Fix crash in new CoreaudioSource code (on invalid file)
This commit is contained in:
parent
270ec425f8
commit
f84798ff75
1 changed files with 1 additions and 1 deletions
|
|
@ -264,7 +264,7 @@ CoreAudioSource::get_soundfile_info (string path, SoundFileInfo& _info, string&)
|
|||
#else
|
||||
CFURLRef url = CFURLCreateFromFileSystemRepresentation (kCFAllocatorDefault, (const UInt8*)path.c_str (), strlen (path.c_str ()), false);
|
||||
OSStatus res = ExtAudioFileOpenURL(url, &af);
|
||||
CFRelease (url);
|
||||
if (url) CFRelease (url);
|
||||
|
||||
if (res != noErr) {
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue