Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix VST3 wrapper in Ardour #283

Merged
merged 1 commit into from
Aug 13, 2024
Merged

Conversation

baconpaul
Copy link
Collaborator

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

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
@baconpaul baconpaul merged commit fcaa434 into free-audio:next Aug 13, 2024
19 checks passed
@baconpaul baconpaul deleted the ardour-vst3 branch August 13, 2024 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant