mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-05 02:11:08 +00:00
Don't unref a floating variant
It gets consumed somewhere along the way.
This commit is contained in:
parent
62747eb243
commit
101cbe690e
@ -842,10 +842,8 @@ gtk_at_spi_context_state_change (GtkATContext *ctx,
|
|||||||
if (changed_properties & GTK_ACCESSIBLE_PROPERTY_CHANGE_LABEL)
|
if (changed_properties & GTK_ACCESSIBLE_PROPERTY_CHANGE_LABEL)
|
||||||
{
|
{
|
||||||
char *label = gtk_at_context_get_label (GTK_AT_CONTEXT (self));
|
char *label = gtk_at_context_get_label (GTK_AT_CONTEXT (self));
|
||||||
GVariant *v = g_variant_new_string (label);
|
GVariant *v = g_variant_new_take_string (label);
|
||||||
emit_property_changed (self, "accessible-description", v);
|
emit_property_changed (self, "accessible-description", v);
|
||||||
g_variant_unref (v);
|
|
||||||
g_free (label);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (changed_platform & GTK_ACCESSIBLE_PLATFORM_CHANGE_FOCUSABLE)
|
if (changed_platform & GTK_ACCESSIBLE_PLATFORM_CHANGE_FOCUSABLE)
|
||||||
|
Loading…
Reference in New Issue
Block a user