a11y: Different value types cannot be equal

Bail out early, instead of going deep into the GtkAccessibleValue type
equal() implementation, where we expect both accessible values to have
the same type.
This commit is contained in:
Emmanuele Bassi 2020-08-25 16:32:49 +01:00 committed by Ahmed Eldemery
parent 9d65ee58c9
commit fe50286e14

View File

@ -185,6 +185,9 @@ gtk_accessible_value_equal (const GtkAccessibleValue *value_a,
if (value_a == NULL || value_b == NULL)
return FALSE;
if (value_a->value_class != value_b->value_class)
return FALSE;
if (value_a->value_class->equal == NULL)
return FALSE;