[gtk/ebassi/for-master: 4/6] a11y: Do not copy the list of references
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ebassi/for-master: 4/6] a11y: Do not copy the list of references
- Date: Tue, 10 Nov 2020 14:32:15 +0000 (UTC)
commit f9db651f32d9ab032b533cb9961e765d0bdc3ff3
Author: Emmanuele Bassi <ebassi gnome org>
Date: Tue Nov 10 14:17:11 2020 +0000
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
gtk/gtkaccessiblevalue.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkaccessiblevalue.c b/gtk/gtkaccessiblevalue.c
index 63cf0321d2..bc893ae742 100644
--- a/gtk/gtkaccessiblevalue.c
+++ b/gtk/gtkaccessiblevalue.c
@@ -569,7 +569,7 @@ gtk_reference_list_accessible_value_new (GList *value)
GtkReferenceListAccessibleValue *self = (GtkReferenceListAccessibleValue *) res;
- self->refs = g_list_copy (value);
+ self->refs = value;
if (self->refs != NULL)
{
for (GList *l = self->refs; l != NULL; l = l->next)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]