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

Showing the changes to libavdevice/fbdev_common.c (1 of 1 file). Show all

Unified · Split

libavdevice/fbdev_common.c+2−2
@@ -121,8 +121,8 @@ int ff_fbdev_get_device_list(AVDeviceInfoList *device_list) · 120 unmodified lines
121121
122122 fail_device:
123123 if (device) {
124− av_free(device->device_name);
125− av_free(device->device_description);
124+ av_freep(&device->device_name);
125+ av_freep(&device->device_description);
126126 av_freep(&device);
127127 }
128128 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