Blender Git Loki

Git Commits -> Revision cbc6719

Revision cbc6719 by Campbell Barton (master)
August 11, 2021, 07:10 (GMT)
Fix T88033: Python reference memory leaks for non main data-blocks

ID data-blocks that could be accessed from Python and weren't freed
using BKE_id_free_ex did not release the Python reference count.

Add BKE_libblock_free_data_py function to clear the Python reference
in this case.

Add asserts to ensure no Python reference is held in situations
when ID's are copied for internal use (not exposed through the RNA API),
to ensure these kinds of leaks don't go by unnoticed again.

Commit Details:

Full Hash: cbc671947a3baca3da7d6c5a2980a86b7f6a7055
Parent Commit: 18fbcaf
Lines Changed: +38, -8

11 Modified Paths:

/source/blender/blenkernel/BKE_lib_id.h (+2, -0) (Diff)
/source/blender/blenkernel/intern/gpencil.c (+1, -0) (Diff)
/source/blender/blenkernel/intern/lib_id_delete.c (+27, -8) (Diff)
/source/blender/blenkernel/intern/material.c (+1, -0) (Diff)
/source/blender/blenkernel/intern/node.cc (+1, -0) (Diff)
/source/blender/blenkernel/intern/particle_system.c (+1, -0) (Diff)
/source/blender/blenkernel/intern/scene.c (+1, -0) (Diff)
/source/blender/editors/space_clip/clip_editor.c (+1, -0) (Diff)
/source/blender/gpu/intern/gpu_material.c (+1, -0) (Diff)
/source/blender/nodes/shader/node_shader_tree.c (+1, -0) (Diff)
/source/blender/windowmanager/intern/wm.c (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021