From f1595185e3855580b881c3d9c05344695d019030 Mon Sep 17 00:00:00 2001 From: mtklein Date: Fri, 7 Aug 2015 07:22:44 -0700 Subject: [PATCH] This iOS crash makes little sense to me. Add some debugging. We called new float[...]. The pointer returned should be aligned for float writes. See https://uberchromegw.corp.google.com/i/client.skia/builders/Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Release BUG=skia: Committed: https://skia.googlesource.com/skia/+/30e4d75c3aebf49b179c265a91adbb6012970d2b Review URL: https://codereview.chromium.org/1270403006 --- src/gpu/GrTestUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 intervals(SkNEW_ARRAY(SkScalar, dashInfo.fCount)); + SkAutoTMalloc intervals(dashInfo.fCount); dashInfo.fIntervals = intervals.get(); SkScalar sum = 0; for (int i = 0; i < dashInfo.fCount; i++) {