From df132fd6df7e0759bf6b8a5d26a97a9d1965885c Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Thu, 1 Apr 2021 11:36:45 +0100 Subject: [PATCH] VST: Fixed a compilation error on iOS when hosting VSTs --- .../juce_audio_processors/format_types/juce_VSTPluginFormat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp index 42871e9746..5532e0091f 100644 --- a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp @@ -3634,7 +3634,7 @@ FileSearchPath VSTPluginFormat::getDefaultLocationsToSearch() CFUniquePtr relativePluginDir (CFBundleCopyBuiltInPlugInsURL (CFBundleGetMainBundle())); CFUniquePtr pluginDir (CFURLCopyAbsoluteURL (relativePluginDir.get())); - CFStringRef path = CFURLCopyFileSystemPath (pluginDir.get(), kCFURLPOSIXPathStyle); + CFUniquePtr path (CFURLCopyFileSystemPath (pluginDir.get(), kCFURLPOSIXPathStyle)); FileSearchPath retval (String (CFStringGetCStringPtr (path.get(), kCFStringEncodingUTF8))); return retval; #endif