Skip to content

Commit

Permalink
Fix last commit, unloading deactivated plugins
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Aug 20, 2024
1 parent 995da29 commit 6c1cdd8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/effects.c
Original file line number Diff line number Diff line change
Expand Up @@ -5903,8 +5903,12 @@ int effects_remove(int effect_id)
}

if (effect->lilv_instance)
lilv_instance_deactivate(effect->lilv_instance);
lilv_instance_free(effect->lilv_instance);
{
if (effect->activated)
lilv_instance_deactivate(effect->lilv_instance);

lilv_instance_free(effect->lilv_instance);
}

if (effect->jack_client)
jack_client_close(effect->jack_client);
Expand Down

0 comments on commit 6c1cdd8

Please sign in to comment.