mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 06:51:54 +00:00
Fix another NULL deref related to #635
This commit is contained in:
parent
27ad0684c6
commit
19a20eb852
1 changed files with 1 additions and 0 deletions
|
@ -4403,6 +4403,7 @@ fluid_synth_alloc_voice(fluid_synth_t *synth, fluid_sample_t *sample,
|
|||
int chan, int key, int vel)
|
||||
{
|
||||
fluid_return_val_if_fail(sample != NULL, NULL);
|
||||
fluid_return_val_if_fail(sample->data != NULL, NULL);
|
||||
FLUID_API_ENTRY_CHAN(NULL);
|
||||
FLUID_API_RETURN(fluid_synth_alloc_voice_LOCAL(synth, sample, chan, key, vel, NULL));
|
||||
|
||||
|
|
Loading…
Reference in a new issue