I have been noticing that juce::String::toCFString() leaks when called from JuceAU::getParameterInfo() and JuceAU::getPresets(). Has anyone else had similar issues? I am using the latest tip of JUCE, Xcode 3.2, the 10.6 SDK and I am using Apple Instruments and AU Lab for debugging…
I was able to compile your code… However, it still continued to leak and the plugin crashed when the editor was closed. I was able to kind of minimize the issue with the following code. Unfortunately, it still seems to leak when you close and reopen the editor (although less often).
Ok, but this snippet doesn’t seem to be based on what I checked-in… I changed the MemoryBlock to a HeapBlock, but this code is using a MemoryBlock again (?)