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>
This commit is contained in:
parent
ede7bac43f
commit
8c79194b8a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user