fix double free in fluid_midi_router_set_default_rules() (#352)

This commit is contained in:
陈福林 2018-03-21 17:59:41 +08:00 committed by Tom M
parent f437662a5e
commit 51e8b99a66

View file

@ -170,7 +170,7 @@ fluid_midi_router_set_default_rules (fluid_midi_router_t *router)
if (!new_rules[i])
{ /* Free already allocated rules */
for (i2 = 0; i2 < i; i2++)
delete_fluid_midi_router_rule (new_rules[i]);
delete_fluid_midi_router_rule (new_rules[i2]);
return FLUID_FAILED;
}