[vlc-devel] [PATCH 6/6] aout: fix user after free
Rémi Denis-Courmont
remi at remlab.net
Thu Aug 27 18:00:24 CEST 2015
It's "use", not "user". But where is it anyway?
Le 2015-08-27 17:18, Hannes Domani a écrit :
> ---
> src/audio_output/dec.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/audio_output/dec.c b/src/audio_output/dec.c
> index cafaba6..9e356aa 100644
> --- a/src/audio_output/dec.c
> +++ b/src/audio_output/dec.c
> @@ -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");
> }
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list