Fix leak in multipicturedraw GMs.
authorbsalomon <bsalomon@google.com>
Fri, 22 Aug 2014 16:02:38 +0000 (09:02 -0700)
committerCommit 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

index a030bccdbf668661f780df5798a72d44789e4ec8..2da1ab6c5dc6daee388484e2d2f1f11f4e63dd23 100644 (file)
@@ -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{