[gnome-builder] langserv-client: transfer error ownership to g_propagate_error()



commit a2a35a46c9fab5493c52afdf820a9809e7a55155
Author: Christian Hergert <chergert redhat com>
Date:   Sun Oct 30 16:03:22 2016 -0700

    langserv-client: transfer error ownership to g_propagate_error()
    
    g_propagate_error() will free the GError for us, so we don't need to hold
    our own reference after this point.

 libide/langserv/ide-langserv-client.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/langserv/ide-langserv-client.c b/libide/langserv/ide-langserv-client.c
index 9a9cf4c..e04c6d6 100644
--- a/libide/langserv/ide-langserv-client.c
+++ b/libide/langserv/ide-langserv-client.c
@@ -1226,7 +1226,7 @@ ide_langserv_client_get_diagnostics_finish (IdeLangservClient  *self,
     *diagnostics = g_steal_pointer (&local_diagnostics);
 
   if (local_error)
-    g_propagate_error (error, local_error);
+    g_propagate_error (error, g_steal_pointer (&local_error));
 
   return ret;
 }


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