forked from AuroraMiddleware/gtk
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)
|
||||
{
|
||||
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);
|
||||
g_variant_unref (v);
|
||||
g_free (label);
|
||||
}
|
||||
|
||||
if (changed_platform & GTK_ACCESSIBLE_PLATFORM_CHANGE_FOCUSABLE)
|
||||
|
Loading…
Reference in New Issue
Block a user