From c25cec5f9aa4e8801ae87854adc629c742b9de59 Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Mon, 21 Apr 2014 15:30:45 +0000 Subject: [PATCH] SkDELETE() -> SkDELETE_ARRAY() in gradients_many test Attempt to fix valgrind failure: http://108.170.220.120:10117/builders/Test-Ubuntu12-ShuttleA-ATI5770-x86_64-Release-Valgrind/builds/489/steps/GenerateGMs/logs/stdio TBR=reed@google.com Review URL: https://codereview.chromium.org/245273002 git-svn-id: http://skia.googlecode.com/svn/trunk@14280 2bbb7eff-a529-9590-31e7-b0007b416f81 --- gm/gradients_no_texture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gm/gradients_no_texture.cpp b/gm/gradients_no_texture.cpp index 931fea6..8086eab 100644 --- a/gm/gradients_no_texture.cpp +++ b/gm/gradients_no_texture.cpp @@ -134,8 +134,8 @@ struct ColorPos { ColorPos() : fColors(NULL), fPos(NULL), fCount(0) {} ~ColorPos() { - SkDELETE(fColors); - SkDELETE(fPos); + SkDELETE_ARRAY(fColors); + SkDELETE_ARRAY(fPos); } void construct(const SkColor colors[], const SkScalar pos[], int count) { -- 2.7.4