Fix leak in PictureNestingBench
R=mtklein@google.com TBR=mtklein@google.com Author: fmalita@chromium.org Review URL: https://codereview.chromium.org/569313004
This commit is contained in:
parent
44162675ca
commit
df886ea06f
@ -23,8 +23,8 @@ public:
|
|||||||
fPaint.setColor(SK_ColorRED);
|
fPaint.setColor(SK_ColorRED);
|
||||||
fPaint.setAntiAlias(true);
|
fPaint.setAntiAlias(true);
|
||||||
fPaint.setStyle(SkPaint::kStroke_Style);
|
fPaint.setStyle(SkPaint::kStroke_Style);
|
||||||
fName.printf("picture_nesting_%s_%d", name,
|
SkAutoTUnref<SkCanvas> nullCanvas(SkCreateNullCanvas());
|
||||||
this->sierpinsky(SkCreateNullCanvas(), 0, fPaint));
|
fName.printf("picture_nesting_%s_%d", name, this->sierpinsky(nullCanvas, 0, fPaint));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
Loading…
Reference in New Issue
Block a user