Fix to call SkDelete_array instead of SkDelete to fix ASAN error.

TBR=mtklein@google.com

BUG=skia:

Review URL: https://codereview.chromium.org/1282333002
This commit is contained in:
egdaniel 2015-08-10 11:39:10 -07:00 committed by Commit bot
parent 2a5ca89ea1
commit fb69bb3a5e

View File

@ -253,7 +253,7 @@ GrStrokeInfo TestStrokeInfo(SkRandom* random) {
}
dashInfo.fPhase = random->nextRangeScalar(0, sum);
strokeInfo.setDashInfo(dashInfo);
SkDELETE(dashInfo.fIntervals);
SkDELETE_ARRAY(dashInfo.fIntervals);
return strokeInfo;
}