aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice/pulse_audio_dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-07-03 04:26:18 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-07-03 13:05:58 +0200
commit33f6ba9c4e7bc5b2f06972f7e38dd35b31756dc9 (patch)
tree74b488a502f65f19cf8a38be4f4c0b2c936a71c0 /libavdevice/pulse_audio_dec.c
parentb52c26c66f65e0f9242e7effbf06ae2fd3e304f0 (diff)
downloadffmpeg-33f6ba9c4e7bc5b2f06972f7e38dd35b31756dc9.tar.gz
avdevice/pulse_audio_dec: clear pa_simple pointer after deallocation
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice/pulse_audio_dec.c')
-rw-r--r--libavdevice/pulse_audio_dec.c1
1 files changed, 1 insertions, 0 deletions
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;
}