common: Use g_auto for variables
This commit is contained in:
parent
eff88ab2f1
commit
86d1d30c63
11 changed files with 134 additions and 244 deletions
|
@ -157,9 +157,8 @@ supports_xinput2_devices (int *opcode)
|
|||
static gboolean
|
||||
device_type_is_present (GsdDeviceType type)
|
||||
{
|
||||
GList *l = gsd_device_manager_list_devices (gsd_device_manager_get (),
|
||||
type);
|
||||
g_list_free (l);
|
||||
g_autoptr(GList) l = gsd_device_manager_list_devices (gsd_device_manager_get (),
|
||||
type);
|
||||
return l != NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue