input-mapper: Use g_auto to free a string array

https://gitlab.gnome.org/GNOME/mutter/merge_requests/435
This commit is contained in:
Marco Trevisan (Treviño) 2019-02-11 15:10:37 +01:00
parent 29ed84e921
commit 54fdd633fe

View File

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