[gnome-builder/gnome-builder-3-20] Revert "clang: don't leak diagnostics"
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-20] Revert "clang: don't leak diagnostics"
- Date: Thu, 12 May 2016 15:34:41 +0000 (UTC)
commit 2f16d241909f86df0f71492eaad8e7f5b648fe9e
Author: Christian Hergert <chergert redhat com>
Date: Thu May 12 18:34:33 2016 +0300
Revert "clang: don't leak diagnostics"
This reverts commit 2007c15ef770986f2746fd005f88736ac1749319.
plugins/clang/ide-clang-diagnostic-provider.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/clang/ide-clang-diagnostic-provider.c b/plugins/clang/ide-clang-diagnostic-provider.c
index 67151d3..4ad6794 100644
--- a/plugins/clang/ide-clang-diagnostic-provider.c
+++ b/plugins/clang/ide-clang-diagnostic-provider.c
@@ -54,7 +54,7 @@ get_translation_unit_cb (GObject *object,
IdeClangService *service = (IdeClangService *)object;
g_autoptr(IdeClangTranslationUnit) tu = NULL;
g_autoptr(GTask) task = user_data;
- g_autoptr(IdeDiagnostics) diagnostics = NULL;
+ IdeDiagnostics *diagnostics;
IdeFile *target;
GFile *gfile;
GError *error = NULL;
@@ -76,7 +76,7 @@ get_translation_unit_cb (GObject *object,
diagnostics = ide_clang_translation_unit_get_diagnostics_for_file (tu, gfile);
g_task_return_pointer (task,
- g_steal_pointer (&diagnostics),
+ ide_diagnostics_ref (diagnostics),
(GDestroyNotify)ide_diagnostics_unref);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]