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

Commit d827c05a 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
(cherry picked from commit 223d0f7d)
parent 8d310650
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;