[Bf-blender-cvs] [c4990aa9937] soc-2019-adaptive-cloth: Cloth: fix memory leak while finding nearest plane
ishbosamiya
noreply at git.blender.org
Thu Jul 25 11:34:55 CEST 2019
Commit: c4990aa993752ebb1e19906ad78e8e2d20371aea
Author: ishbosamiya
Date: Sun Jul 21 15:58:38 2019 +0530
Branches: soc-2019-adaptive-cloth
https://developer.blender.org/rBc4990aa993752ebb1e19906ad78e8e2d20371aea
Cloth: fix memory leak while finding nearest plane
===================================================================
M source/blender/blenkernel/intern/cloth_remeshing.cpp
===================================================================
diff --git a/source/blender/blenkernel/intern/cloth_remeshing.cpp b/source/blender/blenkernel/intern/cloth_remeshing.cpp
index e0407d0212c..338c61b96a7 100644
--- a/source/blender/blenkernel/intern/cloth_remeshing.cpp
+++ b/source/blender/blenkernel/intern/cloth_remeshing.cpp
@@ -2057,6 +2057,7 @@ static void cloth_remeshing_obstacle_metric(
/*Now, actual obstacle metric calculation */
cloth_remeshing_find_nearest_planes(bm, collmd, 0.01f, planes);
}
+ BKE_collision_objects_free(collobjs);
}
}
More information about the Bf-blender-cvs
mailing list