From 33f6ba9c4e7bc5b2f06972f7e38dd35b31756dc9 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 3 Jul 2014 04:26:18 +0200 Subject: [PATCH] avdevice/pulse_audio_dec: clear pa_simple pointer after deallocation Signed-off-by: Michael Niedermayer --- 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 ec94fe1b4a..414d73b5a7 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; }