Commit 276a9657 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fluidsynth: small unlikely memory leak

parent 9dff8ba6
...@@ -238,7 +238,7 @@ static aout_buffer_t *DecodeBlock (decoder_t *p_dec, block_t **pp_block) ...@@ -238,7 +238,7 @@ static aout_buffer_t *DecodeBlock (decoder_t *p_dec, block_t **pp_block)
unsigned samples = unsigned samples =
(p_block->i_pts - date_Get (&p_sys->end_date)) * 441 / 10000; (p_block->i_pts - date_Get (&p_sys->end_date)) * 441 / 10000;
if (samples == 0) if (samples == 0)
return NULL; goto drop;
p_out = decoder_NewAudioBuffer (p_dec, samples); p_out = decoder_NewAudioBuffer (p_dec, samples);
if (p_out == NULL) if (p_out == NULL)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment