From 3e161d1f137f7e1643ee7e6de24801901c59367a Mon Sep 17 00:00:00 2001 From: Benoit Girard Date: Wed, 31 Oct 2012 14:46:11 -0400 Subject: [PATCH] Bug 734718 - Recycle Bitmap instead of waiting for GC. r=kats --HG-- extra : rebase_source : a2dc7f1b9e1997b5323456d291cb3690d3a92192 --- mobile/android/base/CanvasDelegate.java | 1 + 1 file changed, 1 insertion(+) diff --git a/mobile/android/base/CanvasDelegate.java b/mobile/android/base/CanvasDelegate.java index d9fafdc73b4..7c454ebb23e 100644 --- a/mobile/android/base/CanvasDelegate.java +++ b/mobile/android/base/CanvasDelegate.java @@ -59,6 +59,7 @@ public class CanvasDelegate { mPaint.setXfermode(mMode); canvas.drawBitmap(bitmap, 0, 0, mPaint); + bitmap.recycle(); mPaint.setXfermode(null); }