Fix memory leak when replicating plugins

This commit is contained in:
Robin Gareus 2022-11-04 17:57:09 +01:00
parent fea7621b17
commit bed2e23ff6
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -182,6 +182,7 @@ PluginInsert::set_count (uint32_t num)
if (require_state) {
XMLNode& state = _plugins[0]->get_state ();
p->set_state (state, Stateful::current_state_version);
delete &state;
}
if (active ()) {