Memory leak with AudioVisualiserComponent (macOS)


#1

Hello,

I’m experiencing huge memory leaks while using AudioVisualiserComponent on macOS. The leak seems to occur every time the component is redrawn. I can see a lot of vImage/vImageCopyBuffer library calls in Instruments that generates a lot of 64 bytes mallocs.

Any hint?

Thanks in advance,

EDIT: I’ve been misled by the Xcode Memory Usage indicator at first. And I was using a Debug build with Instruments which is not recommended. Profiling my app with a Release build doesn’t show memory leaks anymore.

Mathieu