Hi, I’m trying to figure out how to manage freeing audioProcessorEditors in an audioApplication.
My understanding is that if createEditorIfNeeded() is called on an audioProcessor then the audioProcessor owns the editor and is responsible for deleting it when the application closes.
It doesn’t do it automatically because when I close I get an assertion in the AudioProcessor destructor that says “ooh nasty - the editor should have been deleted before it’s AudioProcessor”.
I’m not storing a reference to the editor outside of the processor, I have tried calling delete on the editor in the release resources and destructor methods to no avail.
Any help here would be much appreciated, it feels like something I only need to learn how to get right once.
I have uploaded a small project that shows my issue. Try building and running it then close the window and watch it assert.
EditorOwnershipTest.zip (7.3 KB)