diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-04 20:03:44 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-04 20:03:44 +0000 |
commit | 37ebe3fbf6c4a5728bc2c322cc0f626444f987bf (patch) | |
tree | e9c7d28d76a1183df8795e155aa86acb1a645985 /tests | |
parent | cc690201d2538a7ec2dbec7040064c8d3c42c613 (diff) |
Address some valgrind issues
https://codereview.appspot.com/7448051/
git-svn-id: http://skia.googlecode.com/svn/trunk@7966 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r-- | tests/GradientTest.cpp | 1 |
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); |