common: Use g_auto for variables

This commit is contained in:
Robert Ancell 2018-06-01 12:45:24 +12:00 committed by Georges Basile Stavracas Neto
parent eff88ab2f1
commit 86d1d30c63
11 changed files with 134 additions and 244 deletions

View file

@ -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;
}