Commit 883f85fa authored by Michael Niedermayer's avatar Michael Niedermayer

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

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent c05310d4
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment