aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/PictureNestingBench.cpp
diff options
context:
space:
mode:
authorGravatar fmalita <fmalita@chromium.org>2014-09-15 18:20:10 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-09-15 18:20:11 -0700
commitdf886ea06f0978e10695b482e658cf3daa9a1fc9 (patch)
treed0c4c56b5d7dc4968f675460752139113ce92b0b /bench/PictureNestingBench.cpp
parent44162675ca4b790c2af0fbd9c41f262c8be26b05 (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.cpp4
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: