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:
883f85f
)
avdevice/avdevice.c: 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:03:11 +0000
(18:03 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavdevice/avdevice.c
patch
|
blob
|
history
diff --git
a/libavdevice/avdevice.c
b/libavdevice/avdevice.c
index
6a75bd7
..
755f251
100644
(file)
--- a/
libavdevice/avdevice.c
+++ b/
libavdevice/avdevice.c
@@
-219,11
+219,11
@@
void avdevice_free_list_devices(AVDeviceInfoList **device_list)
for (i = 0; i < list->nb_devices; i++) {
dev = list->devices[i];
if (dev) {
- av_free
(
dev->device_name);
- av_free
(
dev->device_description);
+ av_free
p(&
dev->device_name);
+ av_free
p(&
dev->device_description);
av_free(dev);
}
}
- av_free
(
list->devices);
+ av_free
p(&
list->devices);
av_freep(device_list);
}