[gnome-builder] cmake: mount toolchain onto the object graph
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] cmake: mount toolchain onto the object graph
- Date: Thu, 24 Jan 2019 21:03:45 +0000 (UTC)
commit 7e5a648e5598d5aca3fe1f78af8be09cd79d6267
Author: Christian Hergert <chergert redhat com>
Date: Thu Jan 24 13:03:20 2019 -0800
cmake: mount toolchain onto the object graph
Fixes #778
src/plugins/cmake/gbp-cmake-toolchain-provider.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/plugins/cmake/gbp-cmake-toolchain-provider.c
b/src/plugins/cmake/gbp-cmake-toolchain-provider.c
index e33ba8bda..11b53245f 100644
--- a/src/plugins/cmake/gbp-cmake-toolchain-provider.c
+++ b/src/plugins/cmake/gbp-cmake-toolchain-provider.c
@@ -92,9 +92,12 @@ gbp_cmake_toolchain_provider_load_worker (IdeTask *task,
continue;
toolchain = gbp_cmake_toolchain_new (context);
+ ide_object_append (IDE_OBJECT (self), IDE_OBJECT (toolchain));
+
if (!gbp_cmake_toolchain_load (toolchain, file, cancellable, &load_error))
{
g_debug ("Error loading %s : %s", file_path, load_error->message);
+ ide_clear_and_destroy_object (&toolchain);
continue;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]