| Index: src/gpu/GrTestUtils.cpp
|
| diff --git a/src/gpu/GrTestUtils.cpp b/src/gpu/GrTestUtils.cpp
|
| index 714b99f65cf3ffd1ea9b9085867d121bf3417a8e..de840cca91e7d8e8ab2f1d8fc1479e0657ae47cd 100644
|
| --- a/src/gpu/GrTestUtils.cpp
|
| +++ b/src/gpu/GrTestUtils.cpp
|
| @@ -244,7 +244,8 @@ GrStrokeInfo TestStrokeInfo(SkRandom* random) {
|
| randomize_stroke_rec(&strokeInfo, random);
|
| SkPathEffect::DashInfo dashInfo;
|
| dashInfo.fCount = random->nextRangeU(1, 50) * 2;
|
| - dashInfo.fIntervals = SkNEW_ARRAY(SkScalar, dashInfo.fCount);
|
| + SkAutoTDeleteArray<SkScalar> intervals(SkNEW_ARRAY(SkScalar, dashInfo.fCount));
|
| + dashInfo.fIntervals = intervals.get();
|
| SkScalar sum = 0;
|
| for (int i = 0; i < dashInfo.fCount; i++) {
|
| dashInfo.fIntervals[i] = random->nextRangeScalar(SkDoubleToScalar(0.01),
|
|
|