free-audio / clap-plugins

MIT License
64 stars 10 forks source link

"double free or corruption (out)" crash when calling `clap_plugin->destroy()` #4

Open BillyDM opened 2 years ago

BillyDM commented 2 years ago

When I call clap_plugin.destroy() one of these example plugins, I get a crash saying double free or corruption (out).

I've made sure that I'm only calling clap_plugin->destroy() once. I've tried some other clap plugins and they don't crash, so maybe it's something wrong with these plugins?

BillyDM commented 2 years ago

Hmm, is it necessary to call clap_plugin->stop_processing() before calling clap_plugin->destroy()?

abique commented 10 months ago

Hi, The plugin should definitely be robust enough to handle that. Ideally the host will stop processing, deactivate and then destroy.