[gnome-builder] langserv-diagnostics: steal GError for task



commit f94d0f9c0642c71b41e867bf2c6a7ba67fee1318
Author: Christian Hergert <chergert redhat com>
Date:   Sun Oct 30 15:03:09 2016 -0700

    langserv-diagnostics: steal GError for task

 libide/langserv/ide-langserv-diagnostic-provider.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/langserv/ide-langserv-diagnostic-provider.c 
b/libide/langserv/ide-langserv-diagnostic-provider.c
index 967fe73..295c54e 100644
--- a/libide/langserv/ide-langserv-diagnostic-provider.c
+++ b/libide/langserv/ide-langserv-diagnostic-provider.c
@@ -64,7 +64,7 @@ ide_langserv_diagnostic_provider_get_diagnostics_cb (GObject      *object,
   g_assert (G_IS_TASK (task));
 
   if (!ide_langserv_client_get_diagnostics_finish (client, result, &diagnostics, &error))
-    g_task_return_error (task, error);
+    g_task_return_error (task, g_steal_pointer (&error));
   else
     g_task_return_pointer (task, g_steal_pointer (&diagnostics), (GDestroyNotify)ide_diagnostics_unref);
 }


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