[gnome-builder/wip/gtk4-port: 848/1774] plugins/clang: bail highlighter when in destruction
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 848/1774] plugins/clang: bail highlighter when in destruction
- Date: Mon, 11 Jul 2022 22:31:26 +0000 (UTC)
commit 251fbd864d607474ee355962bf7cba863e4fc54e
Author: Christian Hergert <chergert redhat com>
Date: Mon May 2 17:38:37 2022 -0700
plugins/clang: bail highlighter when in destruction
src/plugins/clang/ide-clang-highlighter.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/clang/ide-clang-highlighter.c b/src/plugins/clang/ide-clang-highlighter.c
index c9ca40a8d..281221f9d 100644
--- a/src/plugins/clang/ide-clang-highlighter.c
+++ b/src/plugins/clang/ide-clang-highlighter.c
@@ -351,7 +351,8 @@ ide_clang_highlighter_queue_udpate (IdeClangHighlighter *self)
{
g_assert (IDE_IS_CLANG_HIGHLIGHTER (self));
- if (self->queued_source != 0)
+ if (self->queued_source != 0 ||
+ ide_object_in_destruction (IDE_OBJECT (self)))
return;
self->queued_source =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]