Merge branch 'master' into blender2.8
[blender.git] / source / blender / blenkernel / intern / collision.c
index 0ba30fedc325ea4c6c92221011f9eb09c6a060ac..d3aa52509557f33482a950467052076353ee5b9c 100644 (file)
@@ -1365,6 +1365,7 @@ void cloth_find_point_contacts(Depsgraph *depsgraph, Object *ob, ClothModifierDa
        if (!collobjs) {
                *r_collider_contacts = NULL;
                *r_totcolliders = 0;
+               BLI_bvhtree_free(cloth_bvh);
                return;
        }