- fix for memory leak in findFreeNavPolyIndex()
- also correct own script for running cppcheck.
This commit is contained in:
parent
c912af36ca
commit
d87fcb0760
|
@ -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
|
||||
]
|
||||
|
|
|
@ -575,7 +575,7 @@ static int findFreeNavPolyIndex(EditMesh* em)
|
|||
else if (indices[i]>freeIdx)
|
||||
break;
|
||||
}
|
||||
delete indices;
|
||||
delete [] indices;
|
||||
return freeIdx;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue