More fixes from coverity report.

This commit is contained in:
Bastien Montagne
2016-08-16 18:19:52 +02:00
parent 64a6a86d57
commit 1e4e140efb
6 changed files with 31 additions and 19 deletions

View File

@@ -306,7 +306,12 @@ bool KX_NavMeshObject::BuildNavMesh()
|| vertsPerPoly<3)
{
printf("Can't build navigation mesh data for object:%s\n", m_name.ReadPtr());
if (vertices) delete[] vertices;
if (vertices) {
delete[] vertices;
}
if (dvertices) {
delete[] dvertices;
}
return false;
}