fixed memory leak: triangulated (cppcheck)
This commit is contained in:
parent
bd08cd7fd2
commit
332d9af81b
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue