[gnome-builder] clang: make sure we release the cached translation unit
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] clang: make sure we release the cached translation unit
- Date: Fri, 27 Mar 2015 00:39:45 +0000 (UTC)
commit 99374d14f85db5597c6f37eda5983e1d917908e1
Author: Christian Hergert <christian hergert me>
Date: Thu Mar 26 17:31:19 2015 -0700
clang: make sure we release the cached translation unit
libide/clang/ide-clang-highlighter.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/clang/ide-clang-highlighter.c b/libide/clang/ide-clang-highlighter.c
index c214160..17fae3e 100644
--- a/libide/clang/ide-clang-highlighter.c
+++ b/libide/clang/ide-clang-highlighter.c
@@ -66,10 +66,10 @@ ide_clang_highlighter_real_update (IdeHighlighter *highlighter,
GtkTextIter *location)
{
IdeClangHighlighter *self = (IdeClangHighlighter *)highlighter;
+ g_autoptr(IdeClangTranslationUnit) unit = NULL;
GtkTextBuffer *text_buffer;
GtkSourceBuffer *source_buffer;
IdeHighlightIndex *index;
- IdeClangTranslationUnit *unit;
IdeContext *context;
IdeClangService *service;
IdeBuffer *buffer;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]