aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-08-22 09:02:38 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-08-22 09:02:38 -0700
commit4b4faa6329b4efe6f143d8d7559b5b2844692f73 (patch)
treeada24248f18088ec3470879a81b712b5d03dff7f
parent37ecbaffd1f9f6841aa562aa31a824d109d52988 (diff)
Fix leak in multipicturedraw GMs.
R=robertphillips@google.com Author: bsalomon@google.com Review URL: https://codereview.chromium.org/502493002
-rw-r--r--gm/multipicturedraw.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/multipicturedraw.cpp b/gm/multipicturedraw.cpp
index a030bccdbf..2da1ab6c5d 100644
--- 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{