[gtk+] inspector: Avoid criticals in the css editro
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] inspector: Avoid criticals in the css editro
- Date: Sun, 20 Dec 2015 19:46:56 +0000 (UTC)
commit 6a67df79a8f40c488f9098170109eacba45ec2cc
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Dec 20 14:40:49 2015 -0500
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.
gtk/inspector/css-editor.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/inspector/css-editor.c b/gtk/inspector/css-editor.c
index d554784..bdfe762 100644
--- a/gtk/inspector/css-editor.c
+++ b/gtk/inspector/css-editor.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]