diff options
author | Michael Niedermayer | 2014-11-21 18:02:01 +0100 |
---|---|---|
committer | Michael Niedermayer | 2014-11-21 18:02:01 +0100 |
commit | c05310d4699c3190c713aa9c9fc1d9f8b1a15ee8 (patch) | |
tree | 8c69559a904dd38b742888f1ab055a7455fa3ce9 /libavdevice/pulse_audio_common.c | |
parent | 5d37d70b0b7ca88f27b99dc7fc3a83b4999318eb (diff) |
avdevice/pulse_audio_common: Use av_freep(), avoid leaving stale pointers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice/pulse_audio_common.c')
-rw-r--r-- | libavdevice/pulse_audio_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/pulse_audio_common.c b/libavdevice/pulse_audio_common.c index 5a2568b82b..4046641479 100644 --- a/libavdevice/pulse_audio_common.c +++ b/libavdevice/pulse_audio_common.c @@ -163,8 +163,8 @@ static void pulse_add_detected_device(PulseAudioDeviceList *info, return; fail: - av_free(new_device->device_description); - av_free(new_device->device_name); + av_freep(&new_device->device_description); + av_freep(&new_device->device_name); av_free(new_device); } |