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