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);