mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 15:01:40 +00:00
avoid memory leak during sample import
This commit is contained in:
parent
19587d343a
commit
6ab1c7fde3
1 changed files with 4 additions and 0 deletions
|
@ -368,6 +368,10 @@ int fluid_defsfont_load(fluid_defsfont_t* defsfont, const fluid_file_callbacks_t
|
|||
fluid_defsfont_add_sample(defsfont, sample);
|
||||
fluid_voice_optimize_sample(sample);
|
||||
}
|
||||
else
|
||||
{
|
||||
delete_fluid_sample(sample);
|
||||
}
|
||||
p = fluid_list_next(p);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue