0001-main-Leak-the-GJS-context-and-ShellGlobal.patch 806 B

12345678910111213141516171819202122232425262728
  1. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Jonas=20=C3=85dahl?= <jadahl@gmail.com>
  3. Date: Wed, 6 Oct 2021 10:00:43 +0200
  4. Subject: [PATCH] main: Leak the GJS context and ShellGlobal
  5. There are many crash-on-exit happening as a side effect of destroying
  6. the GJS context. Work around these until we have a better solution by
  7. leaking them.
  8. ---
  9. src/main.c | 2 ++
  10. 1 file changed, 2 insertions(+)
  11. diff --git a/src/main.c b/src/main.c
  12. index 29275cda0725..2311a74bd110 100644
  13. --- a/src/main.c
  14. +++ b/src/main.c
  15. @@ -589,9 +589,11 @@ main (int argc, char **argv)
  16. shell_profiler_shutdown ();
  17. +#if 0
  18. g_debug ("Doing final cleanup");
  19. _shell_global_destroy_gjs_context (shell_global_get ());
  20. g_object_unref (shell_global_get ());
  21. +#endif
  22. return ecode;
  23. }