AddListener In AudioPluginHost Destructor


#1

Taking a look at the refreshed AudioPluginHost code, why is there a Listener registered to the underlying AudioProcessorGraph when the FilterGraph is destructed?

FilterGraph::~FilterGraph()
{
    graph.addListener (this);
    graph.removeChangeListener (this);
    graph.clear();
}

#2

I’m assuming this is a typo and should be removeListener. Thanks for spotting that!