[FFmpeg-cvslog] avdevice/pulse_audio_dec: clear pa_simple pointer after deallocation
Michael Niedermayer
git at videolan.org
Thu Jul 3 13:13:11 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jul 3 04:26:18 2014 +0200| [33f6ba9c4e7bc5b2f06972f7e38dd35b31756dc9] | committer: Michael Niedermayer
avdevice/pulse_audio_dec: clear pa_simple pointer after deallocation
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=33f6ba9c4e7bc5b2f06972f7e38dd35b31756dc9
---
libavdevice/pulse_audio_dec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavdevice/pulse_audio_dec.c b/libavdevice/pulse_audio_dec.c
index ec94fe1..414d73b 100644
--- a/libavdevice/pulse_audio_dec.c
+++ b/libavdevice/pulse_audio_dec.c
@@ -144,6 +144,7 @@ static av_cold int pulse_close(AVFormatContext *s)
{
PulseData *pd = s->priv_data;
pa_simple_free(pd->s);
+ pd->s = NULL;
return 0;
}
More information about the ffmpeg-cvslog
mailing list