diff --git a/src/bounce/collision/shapes/qhull.cpp b/src/bounce/collision/shapes/qhull.cpp index 6a80b40..6f9abda 100644 --- a/src/bounce/collision/shapes/qhull.cpp +++ b/src/bounce/collision/shapes/qhull.cpp @@ -173,6 +173,7 @@ void b3QHull::Set(const b3Vec3* points, u32 count) if (psCount < 4) { // Polyhedron is degenerate. + b3Free(ps); return; }