Browse Source

avdevice/fbdev_common: Use av_freep(), avoid leaving stale pointers

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.5
Michael Niedermayer 10 years ago
parent
commit
883f85fa8f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavdevice/fbdev_common.c

+ 2
- 2
libavdevice/fbdev_common.c View File

@@ -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)


Loading…
Cancel
Save