Showing the changes to libavdevice/fbdev_common.c (1 of 1 file). Show all
Unified · Split
| @@ -121,8 +121,8 @@ int ff_fbdev_get_device_list(AVDeviceInfoList *device_list) · 120 unmodified lines | |||
| 121 | 121 | ||
| 122 | fail_device: | 122 | fail_device: |
| 123 | if (device) { | 123 | if (device) { |
| 124 | av_free(device->device_name); | 124 | av_freep(&device->device_name); |
| 125 | av_free(device->device_description); | 125 | av_freep(&device->device_description); |
| 126 | av_freep(&device); | 126 | av_freep(&device); |
| 127 | } | 127 | } |
| 128 | if (fd >= 0) | 128 | if (fd >= 0) |