From 615daf0e043dd25b05be643ffdafb34194099dc5 Mon Sep 17 00:00:00 2001 From: Mike Klein Date: Tue, 27 Sep 2016 11:26:50 -0400 Subject: OverAlignedTest: use sk_ malloc and free. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2712 Change-Id: I73b2b45ba6a1303b957aa03953eef305f8be9144 Reviewed-on: https://skia-review.googlesource.com/2712 Reviewed-by: Ben Wagner --- tests/OverAlignedTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/OverAlignedTest.cpp') diff --git a/tests/OverAlignedTest.cpp b/tests/OverAlignedTest.cpp index aea74c7daa..fcc3e16ef5 100644 --- a/tests/OverAlignedTest.cpp +++ b/tests/OverAlignedTest.cpp @@ -15,8 +15,8 @@ DEF_TEST(OverAligned, r) { SkRandom rand; // Let's test that assertion. We think it really should be providing 8-byte alignment. for (int i = 0; i < 1000; i++) { - void* p = malloc(rand.nextRangeU(0,100)); + void* p = sk_malloc_throw(rand.nextRangeU(0,100)); REPORTER_ASSERT(r, SkIsAlign8((uintptr_t)p)); - free(p); + sk_free(p); } } -- cgit v1.2.3