[Bf-blender-cvs] [8be22e2ef18] soc-2021-simulation-display: Fix: Memory issue in store_convex_hull_draw_data: delete the convex hull computer.

soumya pochiraju noreply at git.blender.org
Wed Aug 18 09:31:19 CEST 2021


Commit: 8be22e2ef1839dc4561e5c81e83d06bb95a181fa
Author: soumya pochiraju
Date:   Wed Aug 18 10:14:43 2021 +0530
Branches: soc-2021-simulation-display
https://developer.blender.org/rB8be22e2ef1839dc4561e5c81e83d06bb95a181fa

Fix: Memory issue in store_convex_hull_draw_data: delete the convex hull computer.

===================================================================

M	source/blender/blenkernel/intern/rigidbody.c

===================================================================

diff --git a/source/blender/blenkernel/intern/rigidbody.c b/source/blender/blenkernel/intern/rigidbody.c
index ff497da3207..4912b16833a 100644
--- a/source/blender/blenkernel/intern/rigidbody.c
+++ b/source/blender/blenkernel/intern/rigidbody.c
@@ -2608,6 +2608,7 @@ void BKE_rigidbody_store_convex_hull_draw_data(Object *ob) {
       MEM_freeN(loops);
     }
     MEM_freeN(mloop_src);
+    plConvexHullDelete(hull);
     ob->rigidbody_object->col_shape_draw_data = hull_draw_data;
 
 }



More information about the Bf-blender-cvs mailing list