Commit e0457843 authored by Hannes Domani's avatar Hannes Domani Committed by Jean-Baptiste Kempf

aout: fix use after free

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent d3bc255c
......@@ -96,6 +96,7 @@ int aout_DecNew( audio_output_t *p_aout,
aout_OutputDelete (p_aout);
error:
aout_volume_Delete (owner->volume);
owner->volume = NULL;
aout_OutputUnlock (p_aout);
var_Destroy (p_aout, "stereo-mode");
return -1;
......@@ -124,6 +125,7 @@ void aout_DecDelete (audio_output_t *aout)
aout_OutputDelete (aout);
}
aout_volume_Delete (owner->volume);
owner->volume = NULL;
aout_OutputUnlock (aout);
var_Destroy (aout, "stereo-mode");
}
......
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