You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
fixed memory leak: triangulated (cppcheck)
This commit is contained in:
@@ -970,6 +970,7 @@ int32 DecomposeConvex(b2Polygon* p, b2Polygon* results, int32 maxPolys) {
|
|||||||
}
|
}
|
||||||
if (nTri < 1) {
|
if (nTri < 1) {
|
||||||
//Still no luck? Oh well...
|
//Still no luck? Oh well...
|
||||||
|
delete[] triangulated;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
int32 nPolys = PolygonizeTriangles(triangulated, nTri, results, maxPolys);
|
int32 nPolys = PolygonizeTriangles(triangulated, nTri, results, maxPolys);
|
||||||
|
|||||||
Reference in New Issue
Block a user