diff --git a/cmds/flatland/GLHelper.cpp b/cmds/flatland/GLHelper.cpp index ddf3aa8686..5c04f6cf19 100644 --- a/cmds/flatland/GLHelper.cpp +++ b/cmds/flatland/GLHelper.cpp @@ -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;