free-audio / clap-wrapper

Wrappers for using CLAP in other plugin environments
MIT License
124 stars 20 forks source link

Fix VST3 wrapper in Ardour #283

Closed baconpaul closed 3 months ago

baconpaul commented 3 months ago

Ardour creates and derefences an editor instance without ever showing or parenting it (for the reason of finding out if it supports the apu in VST#PI::has_editor). That's a bit odd, but it also meant that _onDestroy was never called, since that was guarded by _created.

So add an _onDestroy which knows if ever created and resets just the pointer if not, allowing windows to not crash in Ardour