Blender Git Loki
Git Commits -> Revision 458ba77
November 25, 2015, 09:51 (GMT) |
Fix for static empty mesh variable, used as default value of meshes on the stack. This creates a (minor) mem leak when statically creating the mesh. Instead it should be constructed in a init/free pair of functions. Because this variable is used in all different compile units, each of them has to create their own global 'empty_mesh' variable. |
Commit Details:
Full Hash: 458ba77ff7ecafe7488714abfa116f4eed568da1
Parent Commit: ca6f1ef
Lines Changed: +57, -9
6 Modified Paths:
/source/blender/blenvm/bvm/bvm_eval.cc (+12, -0) (Diff)
/source/blender/blenvm/bvm/bvm_eval.h (+3, -0) (Diff)
/source/blender/blenvm/compile/bvm_nodegraph.cc (+15, -1) (Diff)
/source/blender/blenvm/compile/bvm_nodegraph.h (+2, -1) (Diff)
/source/blender/blenvm/intern/bvm_api.cc (+17, -1) (Diff)
/source/blender/blenvm/util/bvm_util_typedesc.h (+8, -6) (Diff)
/source/blender/blenvm/bvm/bvm_eval.h (+3, -0) (Diff)
/source/blender/blenvm/compile/bvm_nodegraph.cc (+15, -1) (Diff)
/source/blender/blenvm/compile/bvm_nodegraph.h (+2, -1) (Diff)
/source/blender/blenvm/intern/bvm_api.cc (+17, -1) (Diff)
/source/blender/blenvm/util/bvm_util_typedesc.h (+8, -6) (Diff)