allow to customize variable i/o plugin inputs
[ardour.git] / libs / ardour / coreaudiosource.cc
index 52b4f21ce74566a492d39a42fa68e528d05c041e..3bb00f731a1c160f951421ccaf9c4e1fb81d2fcb 100644 (file)
@@ -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;