Fix another NULL deref related to #635

This commit is contained in:
derselbst 2020-05-23 15:31:48 +02:00
parent 27ad0684c6
commit 19a20eb852

View file

@ -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));