[gnome-builder/wip/gtk4-port] plugins/clang: clear source upon destroy vfunc
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port] plugins/clang: clear source upon destroy vfunc
- Date: Tue, 3 May 2022 00:42:42 +0000 (UTC)
commit 35bf745a81b1ccfe49f3e97901cdd68c18021fea
Author: Christian Hergert <chergert redhat com>
Date: Mon May 2 17:37:24 2022 -0700
plugins/clang: clear source upon destroy vfunc
src/plugins/clang/ide-clang-highlighter.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/plugins/clang/ide-clang-highlighter.c b/src/plugins/clang/ide-clang-highlighter.c
index 4c4532845..f1d276aa7 100644
--- a/src/plugins/clang/ide-clang-highlighter.c
+++ b/src/plugins/clang/ide-clang-highlighter.c
@@ -283,6 +283,7 @@ ide_clang_highlighter_destroy (IdeObject *object)
{
IdeClangHighlighter *self = (IdeClangHighlighter *)object;
+ g_clear_handle_id (&self->queued_source, g_source_remove);
g_clear_pointer (&self->index, ide_highlight_index_unref);
g_clear_weak_pointer (&self->engine);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]