mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-02-22 11:51:56 +00:00
avoid NULL deref in fluid_rampreset_preset_delete()
This commit is contained in:
parent
71592ec679
commit
17dded3700
1 changed files with 1 additions and 0 deletions
|
@ -150,6 +150,7 @@ void fluid_rampreset_preset_delete(fluid_preset_t* preset)
|
|||
{
|
||||
fluid_ramsfont_t* ramsfont;
|
||||
fluid_rampreset_t* rampreset;
|
||||
fluid_return_if_fail(preset != NULL);
|
||||
|
||||
ramsfont = fluid_sfont_get_data(preset->sfont);
|
||||
rampreset = fluid_preset_get_data(preset);
|
||||
|
|
Loading…
Reference in a new issue