Blame SOURCES/0001-main-Leak-the-GJS-context-and-ShellGlobal.patch

1bd53d
From a9e79b1657dc7c1b702d7acc4d322539d2b8b6aa Mon Sep 17 00:00:00 2001
1bd53d
From: =?UTF-8?q?Jonas=20=C3=85dahl?= <jadahl@gmail.com>
1bd53d
Date: Wed, 6 Oct 2021 10:00:43 +0200
1bd53d
Subject: [PATCH] main: Leak the GJS context and ShellGlobal
1bd53d
1bd53d
There are many crash-on-exit happening as a side effect of destroying
1bd53d
the GJS context. Work around these until we have a better solution by
1bd53d
leaking them.
1bd53d
---
1bd53d
 src/main.c | 2 ++
1bd53d
 1 file changed, 2 insertions(+)
1bd53d
1bd53d
diff --git a/src/main.c b/src/main.c
1bd53d
index 91e5493fd1..d62dda9627 100644
1bd53d
--- a/src/main.c
1bd53d
+++ b/src/main.c
1bd53d
@@ -508,9 +508,11 @@ main (int argc, char **argv)
1bd53d
   ecode = meta_run ();
1bd53d
   shell_profiler_shutdown ();
1bd53d
 
1bd53d
+#if 0
1bd53d
   g_debug ("Doing final cleanup");
1bd53d
   _shell_global_destroy_gjs_context (shell_global_get ());
1bd53d
   g_object_unref (shell_global_get ());
1bd53d
+#endif
1bd53d
 
1bd53d
   return ecode;
1bd53d
 }
1bd53d
-- 
1bd53d
2.31.1
1bd53d