[Bf-blender-cvs] [922cf09] temp_custom_loop_normals: Fix for unfreed memory of internal hair cloth modifier pointcache.
Lukas Tönne
noreply at git.blender.org
Mon Feb 2 20:22:40 CET 2015
Commit: 922cf09ee596473e0b80390547c958c2f28c7fe1
Author: Lukas Tönne
Date: Mon Feb 2 12:51:22 2015 +0100
Branches: temp_custom_loop_normals
https://developer.blender.org/rB922cf09ee596473e0b80390547c958c2f28c7fe1
Fix for unfreed memory of internal hair cloth modifier pointcache.
===================================================================
M source/blender/blenkernel/intern/particle.c
===================================================================
diff --git a/source/blender/blenkernel/intern/particle.c b/source/blender/blenkernel/intern/particle.c
index b817b72..2de5f46 100644
--- a/source/blender/blenkernel/intern/particle.c
+++ b/source/blender/blenkernel/intern/particle.c
@@ -414,8 +414,7 @@ void free_hair(Object *UNUSED(ob), ParticleSystem *psys, int dynamics)
if (psys->clmd) {
if (dynamics) {
BKE_ptcache_free_list(&psys->ptcaches);
- psys->clmd->point_cache = psys->pointcache = NULL;
- BLI_listbase_clear(&psys->clmd->ptcaches);
+ psys->pointcache = NULL;
modifier_free((ModifierData *)psys->clmd);
More information about the Bf-blender-cvs
mailing list