This repository was archived by the owner on Mar 27, 2024. It is now read-only.
This repository was archived by the owner on Mar 27, 2024. It is now read-only.
Preventing memory leak when plugin is unloaded #41
Open
Description
We are using Box::into_raw
in VSTPluginMain
but when a plugin is unloaded in a host, how will the memory get freed?
How are hosts usually freeing the memory when unloading a vst dll?
Are hosts usually calling delete aeffect;
on the pointer returned by VSTPluginMain
(assuming that they were written in C++)? Or are they not even trying to free the memory?
It might not happen often that plugins are unloaded/reloaded but we should still strive to avoid memory leaks..