clap-plugins
clap-plugins copied to clipboard
"double free or corruption (out)" crash when calling `clap_plugin->destroy()`
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?
Hmm, is it necessary to call clap_plugin->stop_processing() before calling clap_plugin->destroy()?
Hi, The plugin should definitely be robust enough to handle that. Ideally the host will stop processing, deactivate and then destroy.