[gnome-builder/gnome-builder-3-30] clang: fix incorrect free function while task holds result



commit 8889598ea8d4fc31ddaf7512dccc077cdbbe7245
Author: Christian Hergert <chergert redhat com>
Date:   Mon Feb 25 18:47:56 2019 -0800

    clang: fix incorrect free function while task holds result
    
    This had the incorrect free func, but were always taking the result anyway.

 src/plugins/clang/ide-clang-diagnostic-provider.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/clang/ide-clang-diagnostic-provider.c 
b/src/plugins/clang/ide-clang-diagnostic-provider.c
index a86f54f5e..79ed2823d 100644
--- a/src/plugins/clang/ide-clang-diagnostic-provider.c
+++ b/src/plugins/clang/ide-clang-diagnostic-provider.c
@@ -49,7 +49,7 @@ ide_clang_diagnostic_provider_diagnose_cb (GObject      *object,
   else
     ide_task_return_pointer (task,
                              g_steal_pointer (&diagnostics),
-                             (GDestroyNotify) g_ptr_array_unref);
+                             (GDestroyNotify) ide_diagnostics_unref);
 }
 
 static void


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