aboutsummaryrefslogtreecommitdiff
path: root/libavdevice/pulse_audio_common.c
diff options
context:
space:
mode:
authorMichael Niedermayer2014-11-21 18:02:01 +0100
committerMichael Niedermayer2014-11-21 18:02:01 +0100
commitc05310d4699c3190c713aa9c9fc1d9f8b1a15ee8 (patch)
tree8c69559a904dd38b742888f1ab055a7455fa3ce9 /libavdevice/pulse_audio_common.c
parent5d37d70b0b7ca88f27b99dc7fc3a83b4999318eb (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.c4
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);
}