clap-plugins icon indicating copy to clipboard operation
clap-plugins copied to clipboard

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

Open BillyDM opened this issue 3 years ago • 2 comments

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 avatar May 18 '22 20:05 BillyDM

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

BillyDM avatar May 18 '22 21:05 BillyDM

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

abique avatar Dec 14 '23 12:12 abique