avoid memory leak during sample import

This commit is contained in:
derselbst 2018-04-07 18:21:25 +02:00
parent 19587d343a
commit 6ab1c7fde3

View file

@ -368,6 +368,10 @@ int fluid_defsfont_load(fluid_defsfont_t* defsfont, const fluid_file_callbacks_t
fluid_defsfont_add_sample(defsfont, sample); fluid_defsfont_add_sample(defsfont, sample);
fluid_voice_optimize_sample(sample); fluid_voice_optimize_sample(sample);
} }
else
{
delete_fluid_sample(sample);
}
p = fluid_list_next(p); p = fluid_list_next(p);
} }