[gnome-builder/wip/libide] libide: fix double free of error structure



commit 77ecfa65282e1f077c85f68e0d506dcfc91ec699
Author: Christian Hergert <christian hergert me>
Date:   Mon Mar 2 23:34:54 2015 -0800

    libide: fix double free of error structure

 libide/ide-diagnostician.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/ide-diagnostician.c b/libide/ide-diagnostician.c
index d5c8014..6e5d447 100644
--- a/libide/ide-diagnostician.c
+++ b/libide/ide-diagnostician.c
@@ -103,7 +103,7 @@ diagnose_cb (GObject      *object,
 
 maybe_complete:
   if (state->total == 1 && error)
-    g_task_return_error (task, error);
+    g_task_return_error (task, g_error_copy (error));
   else if (!state->active)
     g_task_return_pointer (task,
                            ide_diagnostics_ref (state->diagnostics),


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