svn merge ^/trunk/blender -r43676:43685
[blender.git] / source / blender / blenkernel / intern / particle_system.c
index 7e69e67fca72824096b37e9aad53ab4fe685747a..69ddcd21cb9500c56fda6d6f45d01bb61f334f1a 100644 (file)
@@ -1127,6 +1127,9 @@ static int distribute_threads_init_data(ParticleThread *threads, Scene *scene, D
                        fprintf(stderr,"Particle distribution error: Nothing to emit from!\n");
 
                if(dm != finaldm) dm->release(dm);
+
+               BLI_kdtree_free(tree);
+
                return 0;
        }