diff options
author | fmalita <fmalita@chromium.org> | 2014-09-15 18:20:10 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-15 18:20:11 -0700 |
commit | df886ea06f0978e10695b482e658cf3daa9a1fc9 (patch) | |
tree | d0c4c56b5d7dc4968f675460752139113ce92b0b /bench/PictureNestingBench.cpp | |
parent | 44162675ca4b790c2af0fbd9c41f262c8be26b05 (diff) |
Fix leak in PictureNestingBench
R=mtklein@google.com
TBR=mtklein@google.com
Author: fmalita@chromium.org
Review URL: https://codereview.chromium.org/569313004
Diffstat (limited to 'bench/PictureNestingBench.cpp')
-rw-r--r-- | bench/PictureNestingBench.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bench/PictureNestingBench.cpp b/bench/PictureNestingBench.cpp index aecd7ed345..f1adb60840 100644 --- a/bench/PictureNestingBench.cpp +++ b/bench/PictureNestingBench.cpp @@ -23,8 +23,8 @@ public: fPaint.setColor(SK_ColorRED); fPaint.setAntiAlias(true); fPaint.setStyle(SkPaint::kStroke_Style); - fName.printf("picture_nesting_%s_%d", name, - this->sierpinsky(SkCreateNullCanvas(), 0, fPaint)); + SkAutoTUnref<SkCanvas> nullCanvas(SkCreateNullCanvas()); + fName.printf("picture_nesting_%s_%d", name, this->sierpinsky(nullCanvas, 0, fPaint)); } protected: |