[gnome-builder] clang: don't clean source range



commit 130c59c232c70eb4b6eced9eb8d4a0f5b006a4cb
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jan 3 01:59:58 2018 -0800

    clang: don't clean source range

 src/plugins/clang/ide-clang-translation-unit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/clang/ide-clang-translation-unit.c b/src/plugins/clang/ide-clang-translation-unit.c
index c447e25..a3adf98 100644
--- a/src/plugins/clang/ide-clang-translation-unit.c
+++ b/src/plugins/clang/ide-clang-translation-unit.c
@@ -434,7 +434,7 @@ ide_clang_translation_unit_get_diagnostics_for_file (IdeClangTranslationUnit *se
 
               for (guint j = 0; j < num_fixits; j++)
                 {
-                  IdeSourceRange *range;
+                  g_autoptr(IdeSourceRange) range = NULL;
                   g_autoptr(IdeFixit) fixit = NULL;
                   CXSourceRange cxrange;
                   CXString cxstr;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]