[gnome-builder] meson: short-circuit when patch is in destruction



commit 77e78cc32a3189e2506e1a94139797465b11bbbf
Author: Christian Hergert <chergert redhat com>
Date:   Mon Feb 11 16:46:33 2019 -0800

    meson: short-circuit when patch is in destruction

 src/plugins/meson/gbp-meson-test-provider.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/meson/gbp-meson-test-provider.c b/src/plugins/meson/gbp-meson-test-provider.c
index b5ccd4957..cf8614800 100644
--- a/src/plugins/meson/gbp-meson-test-provider.c
+++ b/src/plugins/meson/gbp-meson-test-provider.c
@@ -175,7 +175,8 @@ gbp_meson_test_provider_communicate_cb (GObject      *object,
   parser = json_parser_new ();
 
   if (!json_parser_load_from_data (parser, stdout_buf, -1, &error) ||
-      NULL == (root = json_parser_get_root (parser)))
+      !(root = json_parser_get_root (parser)) ||
+      ide_object_in_destruction (IDE_OBJECT (self)))
     IDE_GOTO (failure);
 
   gbp_meson_test_provider_load_json (self, root);


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