mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 12:32:05 +00:00
input-mapper: Use g_auto to free a string array
https://gitlab.gnome.org/GNOME/mutter/merge_requests/435
This commit is contained in:
parent
29ed84e921
commit
54fdd633fe
@ -250,7 +250,7 @@ match_edid (MetaMapperInputInfo *input,
|
||||
else
|
||||
{
|
||||
int i;
|
||||
char **split;
|
||||
g_auto (GStrv) split = NULL;
|
||||
|
||||
split = g_strsplit (meta_monitor_get_product (monitor), " ", -1);
|
||||
|
||||
@ -262,8 +262,6 @@ match_edid (MetaMapperInputInfo *input,
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
g_strfreev (split);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user