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:
Manoj Gupta 2016-11-01 17:30:24 -07:00 committed by George Burgess IV
parent 3e9e757437
commit 412211887e

View file

@ -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;