mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
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:
parent
c264254d4b
commit
f9db651f32
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user