[vlc-devel] [PATCH 6/6] aout: fix user after free
Hannes Domani
ssbssa at yahoo.de
Thu Aug 27 16:18:26 CEST 2015
---
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");
}
--
2.5.0
More information about the vlc-devel
mailing list