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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-08-24 07:36:25 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-08-24 07:36:25 +0300
commite0a6001a221c6f38a9a61cb6a21e4e776147f99d (patch)
treede007f802c60abd502df4be2933822512ef4c2dc /source
parent8b55cda04812255922f488ad6bacd228d5d290a6 (diff)
Fix reporting Python reference leaks with WITH_PYTHON_SAFETY
Error in f3e26c847b6ba0924cfd02641345164c54234425
Diffstat (limited to 'source')
-rw-r--r--source/blender/python/intern/bpy_rna.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c
index ac1a7f68885..e9d5ae278bb 100644
--- a/source/blender/python/intern/bpy_rna.c
+++ b/source/blender/python/intern/bpy_rna.c
@@ -7774,7 +7774,7 @@ void BPY_rna_exit(void)
* will crash giving a useful error with address sanitizer. The likely cause
* for this list not being empty is a missing call to: #BKE_libblock_free_data_py. */
const int id_weakref_pool_len = BLI_ghash_len(id_weakref_pool);
- if (id_weakref_pool_len != id_weakref_pool_len) {
+ if (id_weakref_pool_len != 0) {
printf("Found %d unreleased ID's\n", id_weakref_pool_len);
GHashIterator gh_iter;
GHASH_ITER (gh_iter, id_weakref_pool) {