diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-07-03 06:26:18 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-07-03 15:05:58 +0400 |
commit | 33f6ba9c4e7bc5b2f06972f7e38dd35b31756dc9 (patch) | |
tree | 74b488a502f65f19cf8a38be4f4c0b2c936a71c0 /libavdevice/pulse_audio_dec.c | |
parent | b52c26c66f65e0f9242e7effbf06ae2fd3e304f0 (diff) |
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.c | 1 |
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; } |