MemoryBlock leaks while using decodeImage on OS X

juce::String thumbnail;
juce::MemoryBlock memoryBlock;
memoryBlock.fromBase64Encoding(thumbnail);
juce::MemoryInputStream inputStream(memoryBlock.getData(), memoryBlock.getSize(), false);
juce::PNGImageFormat pngImageFormat;
auto decodedImage = pngImageFormat.decodeImage(inputStream);

The following code on OS X will trigger JUCE’s memory leak detector, I did figure out that setting JUCE_USING_COREIMAGE_LOADER to false make the leak go away. So it should come from the file juce_loadWithCoreImage in the function juce_mac_ CoreGraphicsContext.mm .

1 Like

Thanks for reporting, @ed95 has a fix for this which will be merged shortly.

1 Like

Thanks for reporting!

1 Like

Thanks for the quick fix :slight_smile: