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; }