commit | 45fcfe8b73aa31efa444ae9ff2e215722f413e7c | [log] [tgz] |
---|---|---|
author | Nicolas Capens <capn@google.com> | Wed May 30 13:27:12 2018 -0400 |
committer | Nicolas Capens <nicolascapens@google.com> | Wed May 30 17:53:13 2018 +0000 |
tree | 310ad18e2dbc16196312dda43f99d9393e0b14e0 | |
parent | 493fc54a61c37b1d28e4641449bbdef792af9ce8 [diff] |
Fix new[] / delete mismatch. delete[] should be called on memory allocated with new[]. Change-Id: Ic21e270a7aa0e6e15132cbc3c454ea4f1e0222ea Reviewed-on: https://swiftshader-review.googlesource.com/19048 Tested-by: Nicolas Capens <nicolascapens@google.com> Reviewed-by: Alexis Hétu <sugoi@google.com>
diff --git a/tests/unittests/unittests.cpp b/tests/unittests/unittests.cpp index afbb678..d75d9ba 100644 --- a/tests/unittests/unittests.cpp +++ b/tests/unittests/unittests.cpp
@@ -360,7 +360,7 @@ EXPECT_GLENUM_EQ(GL_NONE, glGetError()); EXPECT_EQ(length, written + 1); EXPECT_NE(strstr(log, "unrolled"), nullptr); - delete log; + delete[] log; glUseProgram(ph.program);