Memory leak on shutdown with AU plugin loaded

When a plugin is loaded as AU and the host quits (it is not enough to unload a plugin) a memory leak is detected:

*** Leaked objects detected: 1 instance(s) of class OwnedArray
*** Leaked objects detected: 1 instance(s) of class AsyncUpdater
JUCE Assertion failure in juce_Singleton.h:50

This can be easily reproduced with stock demo plugins on current develop e.g. GainPlugin:

  • load GainPluginDemo in host as AU
  • quit host

While the problem can be reproduced on current develop it also happens on JUCE 7

tested on REAPER and Ableton

In all likelihood a duplicate of Memory Leaks on shutdown - #12 by 7sharp9
Fixed on develop

1 Like