Fix memory leak when replicating plugins
This commit is contained in:
parent
fea7621b17
commit
bed2e23ff6
@ -182,6 +182,7 @@ PluginInsert::set_count (uint32_t num)
|
|||||||
if (require_state) {
|
if (require_state) {
|
||||||
XMLNode& state = _plugins[0]->get_state ();
|
XMLNode& state = _plugins[0]->get_state ();
|
||||||
p->set_state (state, Stateful::current_state_version);
|
p->set_state (state, Stateful::current_state_version);
|
||||||
|
delete &state;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (active ()) {
|
if (active ()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user