Fix for a particles memory leak:

* Hair wasn't freed properly when changing particles from hair to normal particles.
This commit is contained in:
Janne Karhu 2010-09-14 01:47:01 +00:00
parent ca940016e1
commit 7245177c26

@ -384,9 +384,6 @@ void free_hair(Object *ob, ParticleSystem *psys, int dynamics)
{
PARTICLE_P;
if(psys->part->type != PART_HAIR)
return;
LOOP_PARTICLES {
if(pa->hair)
MEM_freeN(pa->hair);