Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 223d0f7d authored by Manoj Gupta's avatar Manoj Gupta Committed by Zhao Wei Liew
Browse files

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
parent d791c2d4
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -365,6 +365,7 @@ static bool compileShaderLines(GLenum shaderType, const char* const* lines,
    if (!result) {
    if (!result) {
        fprintf(stderr, "Shader source:\n");
        fprintf(stderr, "Shader source:\n");
        printShaderSource(lines);
        printShaderSource(lines);
        delete[] src;
        return false;
        return false;
    }
    }
    delete[] src;
    delete[] src;