Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-11-21 20:02:01 +0300
committerMichael Niedermayer <michaelni@gmx.at>2014-11-21 20:03:11 +0300
commit6995be43aee561b04e13b60d65d5503fbe5d2647 (patch)
treeb02026ee55ec7807508f9df599965ac73ece34ab /libavdevice/avdevice.c
parent883f85fa8ffd534b1fe04fc34883ab96ac5c784e (diff)
avdevice/avdevice.c: Use av_freep(), avoid leaving stale pointers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice/avdevice.c')
-rw-r--r--libavdevice/avdevice.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavdevice/avdevice.c b/libavdevice/avdevice.c
index 6a75bd79d7..755f251727 100644
--- 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_freep(&dev->device_name);
+ av_freep(&dev->device_description);
av_free(dev);
}
}
- av_free(list->devices);
+ av_freep(&list->devices);
av_freep(device_list);
}