a11y: Do not copy the list of references

The constructor for GtkReferenceListAccessibleValue is transfer full,
which means we should not be copying the GList around.

Fixes: #3343
This commit is contained in:
Emmanuele Bassi 2020-11-10 14:17:11 +00:00
parent c264254d4b
commit f9db651f32

View File

@ -569,7 +569,7 @@ gtk_reference_list_accessible_value_new (GList *value)
GtkReferenceListAccessibleValue *self = (GtkReferenceListAccessibleValue *) res; GtkReferenceListAccessibleValue *self = (GtkReferenceListAccessibleValue *) res;
self->refs = g_list_copy (value); self->refs = value;
if (self->refs != NULL) if (self->refs != NULL)
{ {
for (GList *l = self->refs; l != NULL; l = l->next) for (GList *l = self->refs; l != NULL; l = l->next)