git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d37d70
)
avdevice/pulse_audio_common: Use av_freep(), avoid leaving stale pointers
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 21 Nov 2014 17:02:01 +0000
(18:02 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 21 Nov 2014 17:02:01 +0000
(18:02 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavdevice/pulse_audio_common.c
patch
|
blob
|
history
diff --git
a/libavdevice/pulse_audio_common.c
b/libavdevice/pulse_audio_common.c
index
5a2568b
..
4046641
100644
(file)
--- 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_free
p(&
new_device->device_description);
+ av_free
p(&
new_device->device_name);
av_free(new_device);
}