Commit 45fcfe8b by Nicolas Capens Committed by Nicolas Capens

Fix new[] / delete mismatch.

delete[] should be called on memory allocated with new[]. Change-Id: Ic21e270a7aa0e6e15132cbc3c454ea4f1e0222ea Reviewed-on: https://swiftshader-review.googlesource.com/19048Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
parent 493fc54a
......@@ -360,7 +360,7 @@ TEST_F(SwiftShaderTest, UnrollLoop)
EXPECT_GLENUM_EQ(GL_NONE, glGetError());
EXPECT_EQ(length, written + 1);
EXPECT_NE(strstr(log, "unrolled"), nullptr);
delete log;
delete[] log;
glUseProgram(ph.program);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment