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.
This commit is contained in:
Jonas Ådahl 2021-10-06 10:00:43 +02:00 committed by Florian Müllner
parent c295e4a0b7
commit 3bcba67c33

View file

@ -589,9 +589,11 @@ main (int argc, char **argv)
shell_profiler_shutdown (); shell_profiler_shutdown ();
#if 0
g_debug ("Doing final cleanup"); g_debug ("Doing final cleanup");
_shell_global_destroy_gjs_context (shell_global_get ()); _shell_global_destroy_gjs_context (shell_global_get ());
g_object_unref (shell_global_get ()); g_object_unref (shell_global_get ());
#endif
return ecode; return ecode;
} }