[gnome-builder] buffer: reset diagnostics on dispose
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] buffer: reset diagnostics on dispose
- Date: Tue, 12 Jun 2018 03:57:26 +0000 (UTC)
commit 93ae851a6e1dfe11c0eeacf4aaeca2af95f5a97b
Author: Christian Hergert <chergert redhat com>
Date: Mon Jun 11 20:49:39 2018 -0700
buffer: reset diagnostics on dispose
Make sure we drop any state related to this immediately.
src/libide/buffers/ide-buffer.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/libide/buffers/ide-buffer.c b/src/libide/buffers/ide-buffer.c
index 09d881b2d..3cc62c1b9 100644
--- a/src/libide/buffers/ide-buffer.c
+++ b/src/libide/buffers/ide-buffer.c
@@ -1486,6 +1486,8 @@ ide_buffer_dispose (GObject *object)
g_assert (IDE_IS_MAIN_THREAD ());
+ ide_buffer_set_diagnostics (self, NULL);
+
dzl_clear_source (&priv->settling_handler);
dzl_clear_source (&priv->reclamation_handler);
dzl_clear_source (&priv->check_modified_timeout);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]