Blender Git Loki
Git Commits -> Revision 7972785
Revision 7972785 by Germano Cavalcante (master) February 24, 2021, 14:57 (GMT) |
PyAPI: Fix memory leak of parameters used for python 'draw_callbacks' When closing the blender, while the callbacks are removed, the reference count of the object used as `customdata` is not decremented. This commit adds two functions that correctly release the python `draw_callbacks` before releasing all `draw_callbacks`. Differential Revision: https://developer.blender.org/D10478 |
Commit Details:
Full Hash: 7972785d7b90771f50534fe3e1101d8adb615fa3
Parent Commit: 6b6469a
Lines Changed: +107, -14
8 Modified Paths:
/source/blender/blenkernel/intern/screen.c (+7, -0) (Diff)
/source/blender/editors/include/ED_space_api.h (+3, -0) (Diff)
/source/blender/editors/space_api/spacetypes.c (+16, -0) (Diff)
/source/blender/python/BPY_extern.h (+6, -0) (Diff)
/source/blender/python/intern/bpy_rna_callback.c (+53, -14) (Diff)
/source/blender/windowmanager/intern/wm.c (+3, -0) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+16, -0) (Diff)
/source/blender/windowmanager/WM_api.h (+3, -0) (Diff)
/source/blender/editors/include/ED_space_api.h (+3, -0) (Diff)
/source/blender/editors/space_api/spacetypes.c (+16, -0) (Diff)
/source/blender/python/BPY_extern.h (+6, -0) (Diff)
/source/blender/python/intern/bpy_rna_callback.c (+53, -14) (Diff)
/source/blender/windowmanager/intern/wm.c (+3, -0) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+16, -0) (Diff)
/source/blender/windowmanager/WM_api.h (+3, -0) (Diff)