Commit 54fdd633 authored by Marco Trevisan's avatar Marco Trevisan 🎺

input-mapper: Use g_auto to free a string array

!435
parent 29ed84e9
Pipeline #58294 passed with stages
in 6 minutes and 57 seconds
...@@ -250,7 +250,7 @@ match_edid (MetaMapperInputInfo *input, ...@@ -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, ...@@ -262,8 +262,6 @@ match_edid (MetaMapperInputInfo *input,
break; break;
} }
} }
g_strfreev (split);
} }
return TRUE; return TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment