Well, if you don’t delete the CallOutBox and leave it running during shutdown, then it could leak all kinds of things.
If you’re firing off callout boxes like this then you probably want to do something like the Projucer does in its shutdown code, where it makes sure that any active modal windows have been closed before quitting.
Is there any way to do this in a plugin? I’m following the docs on the CallOutBox page creating with a unique_ptr, but as it’s not an application I can’t do the trick in ProJucer as it uses a wait.
I’m loading a custom component into the CallOutBox. If the component has a slider in there’s no leak, only a combobox.