Blender Git Loki

Git Commits -> Revision 326255d

Revision 326255d by Lukas Toenne (object_nodes, strand_nodes)
January 13, 2016, 10:02 (GMT)
Fix a memleak of the return value user counter from mesh_ptr.

The returned mesh_ptr result needs to be cleared to ensure the user
counter is also freed. To avoid deleting the mesh data as well a new
function 'reset' was added, which frees the user counter but only resets
the data pointer without freeing it.

Commit Details:

Full Hash: 326255d080cae6030f76a9f3f4ad686c1ead6b40
Parent Commit: 0937f5b
Lines Changed: +21, -2

2 Modified Paths:

/source/blender/blenvm/intern/bvm_api.cc (+3, -1) (Diff)
/source/blender/blenvm/util/bvm_util_data_ptr.h (+18, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021