[gnome-builder/wip/highlight] 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/wip/highlight] clang: make sure we release the cached translation unit
- Date: Fri, 27 Mar 2015 00:33:20 +0000 (UTC)
commit 224aa92e41e4b8ac9772cbd079ed27ed13c06544
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]