History

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

Michael Niedermayer committed 11 years ago

Commit 883f85f1 parent c05310d1 file · +2 −2Browse files

Unified · Split

libavdevice/fbdev_common.c+2−2
@@ -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)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t