mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 06:51:54 +00:00
fix double free in fluid_midi_router_set_default_rules() (#352)
This commit is contained in:
parent
f437662a5e
commit
51e8b99a66
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ fluid_midi_router_set_default_rules (fluid_midi_router_t *router)
|
||||||
if (!new_rules[i])
|
if (!new_rules[i])
|
||||||
{ /* Free already allocated rules */
|
{ /* Free already allocated rules */
|
||||||
for (i2 = 0; i2 < i; i2++)
|
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;
|
return FLUID_FAILED;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue