summaryrefslogtreecommitdiff
path: root/libavdevice
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-11-21 18:02:01 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-11-21 18:02:41 +0100
commit883f85fa8ffd534b1fe04fc34883ab96ac5c784e (patch)
tree6aa6e8244c55a2aca8327274a33c33f224dc0f40 /libavdevice
parentc05310d4699c3190c713aa9c9fc1d9f8b1a15ee8 (diff)
downloadffmpeg-883f85fa8ffd534b1fe04fc34883ab96ac5c784e.tar.gz
avdevice/fbdev_common: Use av_freep(), avoid leaving stale pointers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/fbdev_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/fbdev_common.c b/libavdevice/fbdev_common.c
index 713e4fdeab..98f96de2af 100644
--- a/libavdevice/fbdev_common.c
+++ b/libavdevice/fbdev_common.c
@@ -121,8 +121,8 @@ int ff_fbdev_get_device_list(AVDeviceInfoList *device_list)
fail_device:
if (device) {
- av_free(device->device_name);
- av_free(device->device_description);
+ av_freep(&device->device_name);
+ av_freep(&device->device_description);
av_freep(&device);
}
if (fd >= 0)