Blender Git Loki
Git Commits -> Revision 48ed9fc
Revision 48ed9fc by Sergey Sharybin (master) February 23, 2016, 11:01 (GMT) |
Fix memory leak in point density The issue was happening when having unconnected point density which will cache data but will not free it because there's no actual call to the actual sampling. Now the idea is to make sure cache is zeroed on file load and undo and then caching via RNA will free the data if any exists. This could leave us with a single copy of cache in the node if it's not used, but it's quite small amount of memory and it's not leaking. |
Commit Details:
Full Hash: 48ed9fcb78275cb82f844ed91f9fe4d15d2570bd
Parent Commit: 9c68ffc
Lines Changed: +42, -3
5 Modified Paths:
/source/blender/blenloader/intern/readfile.c (+4, -0) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+5, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_pointdensity.c (+26, -2) (Diff)
/source/blender/render/extern/include/RE_render_ext.h (+2, -0) (Diff)
/source/blender/render/intern/source/pointdensity.c (+5, -0) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+5, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_pointdensity.c (+26, -2) (Diff)
/source/blender/render/extern/include/RE_render_ext.h (+2, -0) (Diff)
/source/blender/render/intern/source/pointdensity.c (+5, -0) (Diff)