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

aout: fix memory leak

(not cherry-picked from f8e940016f9d710ebfafe8e3898fe591dd9c76c2)
parent 96158ea0
...@@ -208,7 +208,10 @@ static void aout_CheckRestart (audio_output_t *aout) ...@@ -208,7 +208,10 @@ static void aout_CheckRestart (audio_output_t *aout)
const aout_request_vout_t request_vout = owner->input->request_vout; const aout_request_vout_t request_vout = owner->input->request_vout;
if (likely(owner->input != NULL)) if (likely(owner->input != NULL))
{
aout_InputDelete (aout, owner->input); aout_InputDelete (aout, owner->input);
free (owner->input);
}
owner->input = NULL; owner->input = NULL;
/* Reinitializes the output */ /* Reinitializes the output */
......
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