Fix (unreported) potentially giant memory leak in Cloth collision solver.
authorBastien Montagne <montagne29@wanadoo.fr>
Mon, 3 Sep 2018 13:30:33 +0000 (15:30 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Mon, 3 Sep 2018 13:30:33 +0000 (15:30 +0200)
commitc6bbe6c5aac29a4d36eb3aedd488ca4deac68fb7
tree3e6ad4ac992c7f67ec4f6dc9ea4493353fd52f2f
parent107f1c0a2b0dec16adb729801cc03614acc7ab82
Fix (unreported) potentially giant memory leak in Cloth collision solver.

Not freeing its BVHTree in case there were no collision objects,
could quickly lead to hundreds of MB of memleak!
source/blender/blenkernel/intern/collision.c