diff options
| author | Juan Linietsky <reduzio@gmail.com> | 2015-05-03 22:53:30 -0300 |
|---|---|---|
| committer | Juan Linietsky <reduzio@gmail.com> | 2015-05-03 22:53:30 -0300 |
| commit | c631d597adca37bcd80a604e430fd9c5f0cc45bc (patch) | |
| tree | 82e85f33eff38ff7b2ee243d23c1ea8424eb91e1 /drivers/convex_decomp | |
| parent | 913cb443fc17a33b07b7b3f04c524d0008241258 (diff) | |
| parent | 3f1826866bbd2b92cf5a9de780ef948323fe7b09 (diff) | |
Merge pull request #1792 from swenner/static_analysis_fixes
Static analysis fixes
Diffstat (limited to 'drivers/convex_decomp')
| -rw-r--r-- | drivers/convex_decomp/b2Polygon.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/convex_decomp/b2Polygon.cpp b/drivers/convex_decomp/b2Polygon.cpp index 49a3e74c2a..668313967e 100644 --- a/drivers/convex_decomp/b2Polygon.cpp +++ b/drivers/convex_decomp/b2Polygon.cpp @@ -970,6 +970,7 @@ int32 DecomposeConvex(b2Polygon* p, b2Polygon* results, int32 maxPolys) { } if (nTri < 1) { //Still no luck? Oh well... + delete[] triangulated; return -1; } int32 nPolys = PolygonizeTriangles(triangulated, nTri, results, maxPolys); |