Fix clang static analyzer warnings.
frameworks/native/cmds/flatland/GLHelper.cpp:366:9: warning: Potential leak of memory pointed to by 'src' Test: Warning no longer appears Change-Id: I2721d292cf1f387f34fb2e69f8370f1abff3f01f
This commit is contained in:
parent
3e9e757437
commit
412211887e
1 changed files with 1 additions and 0 deletions
|
@ -365,6 +365,7 @@ static bool compileShaderLines(GLenum shaderType, const char* const* lines,
|
|||
if (!result) {
|
||||
fprintf(stderr, "Shader source:\n");
|
||||
printShaderSource(lines);
|
||||
delete[] src;
|
||||
return false;
|
||||
}
|
||||
delete[] src;
|
||||
|
|
Loading…
Reference in a new issue