projects
/
platform
/
upstream
/
libSkiaSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37ecbaf
)
Fix leak in multipicturedraw GMs.
author
bsalomon
<bsalomon@google.com>
Fri, 22 Aug 2014 16:02:38 +0000
(09:02 -0700)
committer
Commit bot
<commit-bot@chromium.org>
Fri, 22 Aug 2014 16:02:38 +0000
(09:02 -0700)
R=robertphillips@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/
502493002
gm/multipicturedraw.cpp
patch
|
blob
|
history
diff --git
a/gm/multipicturedraw.cpp
b/gm/multipicturedraw.cpp
index a030bccdbf668661f780df5798a72d44789e4ec8..2da1ab6c5dc6daee388484e2d2f1f11f4e63dd23 100644
(file)
--- a/
gm/multipicturedraw.cpp
+++ b/
gm/multipicturedraw.cpp
@@
-295,8
+295,8
@@
namespace skiagm {
const SkPicture* fPictures[2];
virtual void onOnceBeforeDraw() SK_OVERRIDE {
- fPictures[0] =
SkRef(make_picture(SK_ColorWHITE)
);
- fPictures[1] =
SkRef(make_picture(SK_ColorGRAY)
);
+ fPictures[0] =
make_picture(SK_ColorWHITE
);
+ fPictures[1] =
make_picture(SK_ColorGRAY
);
}
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE{