[FFmpeg-cvslog] avdevice/pulse_audio_common: Use av_freep(), avoid leaving stale pointers
Michael Niedermayer
git at videolan.org
Fri Nov 21 18:51:00 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Nov 21 18:02:01 2014 +0100| [c05310d4699c3190c713aa9c9fc1d9f8b1a15ee8] | committer: Michael Niedermayer
avdevice/pulse_audio_common: Use av_freep(), avoid leaving stale pointers
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c05310d4699c3190c713aa9c9fc1d9f8b1a15ee8
---
libavdevice/pulse_audio_common.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavdevice/pulse_audio_common.c b/libavdevice/pulse_audio_common.c
index 5a2568b..4046641 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);
}
More information about the ffmpeg-cvslog
mailing list