xprops: Free counter_list_from_results() return value with g_free()

counter_list_from_results directly passes through the results->prop
pointer which is g_malloc memory, so we should free the buffer it
returns with g_free.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/786
This commit is contained in:
Hans de Goede 2019-09-09 16:23:04 +02:00 committed by Jonas Ådahl
parent e2330617ac
commit 488991b0f6

View File

@ -1109,7 +1109,7 @@ free_value (MetaPropValue *value)
case META_PROP_VALUE_SYNC_COUNTER:
break;
case META_PROP_VALUE_SYNC_COUNTER_LIST:
free (value->v.xcounter_list.counters);
g_free (value->v.xcounter_list.counters);
break;
}
}