diff options
author | Ben Wagner <bungeman@google.com> | 2017-07-25 11:47:48 -0400 |
---|---|---|
committer | Ben Wagner <bungeman@google.com> | 2017-07-25 15:56:18 +0000 |
commit | 8c79194b8a51c61974b7845058d0a9a1357b441c (patch) | |
tree | 9899bed870af1bc5e77c1ad3490527fa5d326ef0 /tests/ProcessorTest.cpp | |
parent | ede7bac43fbc69b9fdf1c178890ba6353f5bb140 (diff) |
Use unique_ptr[] for new[].
Correction for
https://skia.googlesource.com/skia.git/+/0e05a823f6ff6e9d799172f002e77ab9f2015f0f
"Add GrFragmentProcessor::clone(), implementation for ColorTableEffect,
and unit test." Found by ASAN.
Change-Id: Ic734e52bc61b0d9eb305631cc23ebad80b0be8b7
Reviewed-on: https://skia-review.googlesource.com/26561
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'tests/ProcessorTest.cpp')
-rw-r--r-- | tests/ProcessorTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ProcessorTest.cpp b/tests/ProcessorTest.cpp index 477618219e..e2840cef5f 100644 --- a/tests/ProcessorTest.cpp +++ b/tests/ProcessorTest.cpp @@ -366,7 +366,7 @@ DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(ProcessorOptimizationValidationTest, repor auto inputTexture = make_input_texture(context, kRenderSize, kRenderSize); - std::unique_ptr<GrColor> readData(new GrColor[kRenderSize * kRenderSize]); + std::unique_ptr<GrColor[]> readData(new GrColor[kRenderSize * kRenderSize]); // Because processor factories configure themselves in random ways, this is not exhaustive. for (int i = 0; i < FPFactory::Count(); ++i) { int timesToInvokeFactory = 5; |