Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(997)

Unified Diff: bench/PictureNestingBench.cpp

Issue 569313004: Fix leak in PictureNestingBench (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/PictureNestingBench.cpp
diff --git a/bench/PictureNestingBench.cpp b/bench/PictureNestingBench.cpp
index aecd7ed34503125a25af2a78f1e7edeffa72a2df..f1adb6084026d9703cae83a502425a43cbb1137c 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());
tfarina 2014/09/17 16:42:34 looks right, since nothing in sierpinsky() takes o
+ fName.printf("picture_nesting_%s_%d", name, this->sierpinsky(nullCanvas, 0, fPaint));
}
protected:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698