static analysis

This commit is contained in:
DarthArgus
2018-07-14 16:52:39 +00:00
parent 2a6f8386fe
commit 468bf36dd0
2 changed files with 3 additions and 0 deletions
@@ -3985,6 +3985,7 @@ void JavaLibrary::alterScriptParams(jobjectArray jparams, const std::string& arg
else
{
WARNING_STRICT_FATAL(true, ("Error getting back string id param on script return"));
delete value;
}
}
break;
@@ -1202,6 +1202,7 @@ void ProceduralTerrainAppearance::_legacyCreateFlora(const Chunk* const chunk)
IGNORE_RETURN (m_floraMap->insert (std::make_pair (key, object)));
} else {
DEBUG_WARNING(true, ("FIX ME: Appearance template in ProceduralTerrainAppearance::_legacyCreateFlora is not found"));
delete object;
}
} //lint !e429 //-- collisionProperty has not been freed or returned
}
@@ -1361,6 +1362,7 @@ void ProceduralTerrainAppearance::createFlora (const Chunk* const chunk)
IGNORE_RETURN (m_floraMap->insert (std::make_pair (key, object)));
} else {
DEBUG_WARNING(true, ("FIX ME: Appearance template in ProceduralTerrainAppearance::createFlora is not found"));
delete object;
}
} //lint !e429 //-- collisionProperty has not been freed or returned