mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
inspector: Avoid criticals in the css editro
We can't keep text iters around after text buffer has been changed. Just clear the list errors when the buffer changes before we've passed it again.
This commit is contained in:
parent
c3d611fcf2
commit
6a67df79a8
@ -308,6 +308,9 @@ text_changed (GtkTextBuffer *buffer,
|
||||
g_source_remove (ce->priv->timeout);
|
||||
|
||||
ce->priv->timeout = g_timeout_add (100, update_timeout, ce);
|
||||
|
||||
g_list_free_full (ce->priv->errors, css_error_free);
|
||||
ce->priv->errors = NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user