aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrTestUtils.cpp
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-08-07 07:22:44 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-07 07:22:44 -0700
commitf1595185e3855580b881c3d9c05344695d019030 (patch)
treeae5971bb496acd35edf793e10b3c246184cf22ed /src/gpu/GrTestUtils.cpp
parent30e4d75c3aebf49b179c265a91adbb6012970d2b (diff)
This iOS crash makes little sense to me. Add some debugging.
Diffstat (limited to 'src/gpu/GrTestUtils.cpp')
-rw-r--r--src/gpu/GrTestUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrTestUtils.cpp b/src/gpu/GrTestUtils.cpp
index 13b4b19fb6..da9fc106b3 100644
--- a/src/gpu/GrTestUtils.cpp
+++ b/src/gpu/GrTestUtils.cpp
@@ -244,7 +244,7 @@ GrStrokeInfo TestStrokeInfo(SkRandom* random) {
randomize_stroke_rec(&strokeInfo, random);
SkPathEffect::DashInfo dashInfo;
dashInfo.fCount = random->nextRangeU(1, 50) * 2;
- SkAutoTDeleteArray<SkScalar> intervals(SkNEW_ARRAY(SkScalar, dashInfo.fCount));
+ SkAutoTMalloc<SkScalar> intervals(dashInfo.fCount);
dashInfo.fIntervals = intervals.get();
SkScalar sum = 0;
for (int i = 0; i < dashInfo.fCount; i++) {