[gnome-builder] clang: don't leak source location when creating diagnostic
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] clang: don't leak source location when creating diagnostic
- Date: Wed, 3 Jan 2018 12:57:39 +0000 (UTC)
commit d4934a954eaae6fb0d6f71e25dee6e3f72a6f2f4
Author: Christian Hergert <chergert redhat com>
Date: Wed Jan 3 04:57:07 2018 -0800
clang: don't leak source location when creating diagnostic
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 a3adf98..e5cb6e5 100644
--- a/src/plugins/clang/ide-clang-translation-unit.c
+++ b/src/plugins/clang/ide-clang-translation-unit.c
@@ -317,10 +317,10 @@ create_diagnostic (IdeClangTranslationUnit *self,
GFile *target,
CXDiagnostic *cxdiag)
{
+ g_autoptr(IdeSourceLocation) loc = NULL;
enum CXDiagnosticSeverity cxseverity;
IdeDiagnosticSeverity severity;
IdeDiagnostic *diag;
- IdeSourceLocation *loc;
g_autofree gchar *spelling = NULL;
CXString cxstr;
CXSourceLocation cxloc;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]