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 for #40 #43

Merged
merged 1 commit into from
Feb 7, 2024
Merged

Fix for #40 #43

merged 1 commit into from
Feb 7, 2024

Conversation

NatureIsFrequency
Copy link
Contributor

Fix for #40

Guard against null _plugin within PluginHost::loadNativePluginPreset
Follow error convention in source code

Tested arch: arm64
Confirm no longer crash

Fix for free-audio#40

Guard against null _plugin within PluginHost::loadNativePluginPreset
Follow error convention in source code

Tested arch: arm64
Confirm no longer crash
@abique abique merged commit 4c4c7f1 into free-audio:main Feb 7, 2024
1 check passed
@abique
Copy link
Contributor

abique commented Feb 7, 2024

Thanks!

@NatureIsFrequency NatureIsFrequency deleted the Fix_Issue_#40 branch February 7, 2024 14:30
NatureIsFrequency added a commit to NatureIsFrequency/clap-host that referenced this pull request Feb 9, 2024
Per @Trinitou suggestions, a plugin specific menu item should only be enabled (available to execute by user)

This fixes the underlying cause of the crashes reported in free-audio#40 and free-audio#42

Therefore this also reverts the now obsolete change in previous merged pull request free-audio#43

Upon load change we update the menu items

Tab indentation set to 3 to be consistent with existing code

Note: Follows the QT memory ownership model, and the QAction pointers lifetime is handled by their parents

Testing:
Launch with no plugin loaded, see menu items are greyed out (disabled), user cannot select these items (as intended) therefore code is not executed and app doesn't crash

Launch with plugin loaded, see menu items are available and executed when user clicks, and confirm still no crashes

Images taken for testing
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.

2 participants