[gnome-builder] autotools: make full ref of task



commit 5e568c29afd656000755f9b7e35738afb834522b
Author: Christian Hergert <chergert redhat com>
Date:   Thu Sep 15 11:33:39 2016 -0700

    autotools: make full ref of task
    
    We can't steal the pointer here, because we don't own it.

 plugins/autotools/ide-autotools-build-system.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/autotools/ide-autotools-build-system.c b/plugins/autotools/ide-autotools-build-system.c
index 46cf4a1..c7d87e5 100644
--- a/plugins/autotools/ide-autotools-build-system.c
+++ b/plugins/autotools/ide-autotools-build-system.c
@@ -1008,7 +1008,7 @@ simple_make_command (GFile            *directory,
   ide_subprocess_wait_check_async (subprocess,
                                    cancellable,
                                    simple_make_command_cb,
-                                   g_steal_pointer (&task));
+                                   g_object_ref (task));
 }
 
 static void


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