Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-09-13 09:01:39 +0300
committerCampbell Barton <campbell@blender.org>2022-09-13 09:01:39 +0300
commit75f9b691e209bc3d09383d733b11a08d2bcfdbc3 (patch)
treed3a3722477f86badbd217e76152a5928ddde5bb7
parent5ffa829a0ed4f1886ecb9d4425afaadb13783e46 (diff)
Docs: improve explanation for why CLG_exit shouldn't be called early
-rw-r--r--source/blender/windowmanager/intern/wm_init_exit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c
index 283b87f1a2f..7ab2e67e4b6 100644
--- a/source/blender/windowmanager/intern/wm_init_exit.c
+++ b/source/blender/windowmanager/intern/wm_init_exit.c
@@ -641,7 +641,8 @@ void WM_exit_ex(bContext *C, const bool do_python)
BKE_tempdir_session_purge();
- /* Keep last (or near last) so logging can be used right up until everything is shut-down. */
+ /* Logging cannot be called after exiting (#CLOG_INFO, #CLOG_WARN etc will crash).
+ * So postpone exiting until other sub-systems that may use logging have shut down. */
CLG_exit();
}