- fix for memory leak in findFreeNavPolyIndex()

- also correct own script for running cppcheck.
This commit is contained in:
Campbell Barton 2011-09-16 14:02:44 +00:00
parent c912af36ca
commit d87fcb0760
2 changed files with 4 additions and 2 deletions

View File

@ -36,7 +36,9 @@ CHECKER_IGNORE_PREFIX = [
CHECKER_BIN = "cppcheck"
CHECKER_ARGS = [
"-I" + os.join(project_source_info.SORCE_DIR, "blender/extern/glew/include"),
# not sure why this is needed, but it is.
"-I" + os.path.join(project_source_info.SOURCE_DIR, "extern/glew/include"),
# "--check-config", # when includes are missing
# "--enable=all", # if you want sixty hundred pedantic suggestions
]

View File

@ -575,7 +575,7 @@ static int findFreeNavPolyIndex(EditMesh* em)
else if (indices[i]>freeIdx)
break;
}
delete indices;
delete [] indices;
return freeIdx;
}