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-08-30 12:46:44 +0300
committerCampbell Barton <campbell@blender.org>2022-08-30 12:46:44 +0300
commit702f112e77b2a3dbf11584f9ca3b26c0b90fdd70 (patch)
tree1cb134dfb04aa0a0bc81ce4c4ad487ec378eb158 /source/blender/windowmanager
parent364f47c83473ee837b8d743dd4abb84fa9053231 (diff)
parenta97ae83a09e0a67168f1d3cdcbafd5b1ff16e3c9 (diff)
Merge branch 'blender-v3.3-release'
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm.c b/source/blender/windowmanager/intern/wm.c
index 9b3a0d39dfa..a0200373ac6 100644
--- a/source/blender/windowmanager/intern/wm.c
+++ b/source/blender/windowmanager/intern/wm.c
@@ -616,7 +616,10 @@ void wm_close_and_free_all(bContext *C, ListBase *wmlist)
while ((wm = wmlist->first)) {
wm_close_and_free(C, wm);
BLI_remlink(wmlist, wm);
- BKE_libblock_free_data(&wm->id, true);
+ /* Don't handle user counts as this is only ever called once #G_MAIN has already been freed via
+ * #BKE_main_free so any ID's referenced by the window-manager (from ID properties) will crash.
+ * See: T100703. */
+ BKE_libblock_free_data(&wm->id, false);
BKE_libblock_free_data_py(&wm->id);
MEM_freeN(wm);
}