Fixed memory leak in bitmaprect GM
authorrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 2 Oct 2012 11:47:16 +0000 (11:47 +0000)
committerrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 2 Oct 2012 11:47:16 +0000 (11:47 +0000)
https://codereview.appspot.com/6593058/

git-svn-id: http://skia.googlecode.com/svn/trunk@5763 2bbb7eff-a529-9590-31e7-b0007b416f81

gm/bitmaprect.cpp

index c4387763289adf3f53b0d240a8b9176f33a0590c..4af6f0bd7d0a84c9696e690195f213aca386be38 100644 (file)
@@ -201,7 +201,7 @@ protected:
 
         SkPaint paint;
         paint.setAlpha(128);
-        paint.setXfermode(mode);
+        paint.setXfermode(mode)->unref();
 
         SkBitmap bitmap;
         make_big_bitmap(&bitmap);