aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-04 20:03:44 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-04 20:03:44 +0000
commit37ebe3fbf6c4a5728bc2c322cc0f626444f987bf (patch)
treee9c7d28d76a1183df8795e155aa86acb1a645985 /tests
parentcc690201d2538a7ec2dbec7040064c8d3c42c613 (diff)
Address some valgrind issues
Diffstat (limited to 'tests')
-rw-r--r--tests/GradientTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/GradientTest.cpp b/tests/GradientTest.cpp
index e60c9ed856..41724b68ee 100644
--- a/tests/GradientTest.cpp
+++ b/tests/GradientTest.cpp
@@ -52,6 +52,7 @@ static void color_gradproc(skiatest::Reporter* reporter, const GradRec& rec) {
REPORTER_ASSERT(reporter, SkShader::kColor_GradientType == s->asAGradient(NULL));
SkShader::GradientInfo info;
+ info.fColors = NULL;
info.fColorCount = 0;
s->asAGradient(&info);
REPORTER_ASSERT(reporter, 1 == info.fColorCount);