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 <ideasman42@gmail.com>2021-02-14 12:58:04 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-02-14 12:58:04 +0300
commit67c8d97db36b285303abc5dce83b1bc8dc209651 (patch)
treebf1cf63fb1f9ade7205d4e6b73800b79a4f3a3b7 /source/blender/windowmanager/intern/wm_init_exit.c
parent07c6a57507e81fe68a7fb3ee23c951fc80f3a042 (diff)
Cleanup: spelling
Diffstat (limited to 'source/blender/windowmanager/intern/wm_init_exit.c')
-rw-r--r--source/blender/windowmanager/intern/wm_init_exit.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c
index 918836041df..56fd51ac6fd 100644
--- a/source/blender/windowmanager/intern/wm_init_exit.c
+++ b/source/blender/windowmanager/intern/wm_init_exit.c
@@ -624,13 +624,13 @@ void WM_exit_ex(bContext *C, const bool do_python)
#ifdef WITH_PYTHON
/* option not to close python so we can use 'atexit' */
if (do_python && ((C == NULL) || CTX_py_init_get(C))) {
- /* XXX - old note */
- /* before BKE_blender_free so py's gc happens while library still exists */
- /* needed at least for a rare sigsegv that can happen in pydrivers */
-
- /* Update for blender 2.5, move after BKE_blender_free because Blender now holds references to
- * PyObject's so decref'ing them after python ends causes bad problems every time
- * the py-driver bug can be fixed if it happens again we can deal with it then. */
+ /* NOTE: (old note)
+ * before BKE_blender_free so Python's garbage-collection happens while library still exists.
+ * Needed at least for a rare crash that can happen in python-drivers.
+ *
+ * Update for Blender 2.5, move after #BKE_blender_free because Blender now holds references
+ * to #PyObject's so #Py_DECREF'ing them after Python ends causes bad problems every time
+ * the python-driver bug can be fixed if it happens again we can deal with it then. */
BPY_python_end();
}
#else