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
|
else
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
char **split;
|
g_auto (GStrv) split = NULL;
|
||||||
|
|
||||||
split = g_strsplit (meta_monitor_get_product (monitor), " ", -1);
|
split = g_strsplit (meta_monitor_get_product (monitor), " ", -1);
|
||||||
|
|
||||||
@ -262,8 +262,6 @@ match_edid (MetaMapperInputInfo *input,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
g_strfreev (split);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user