Created attachment 9204 [details] Source patch Observable by zooming in and out of a PDF repeatedly. The library will allocate bitmaps for each zoom operation which will not be released by the system as there is no explicit call to Bitmap.recycle(). This patch resolves the issue.
Fixed in: commit f30db116a89652de0da03e27513753f0e432fd1a Author: Robin Watts <robin.watts@artifex.com> Date: Thu Jan 10 20:19:20 2013 +0000 Bug 693546: Improve Bitmap recycling in Android app. Thanks to Andre Ferreira for bringing this up and submitting a patch. (Andre should have é, but this upsets git/my editor, sorry!) Change BitmapHolder handling so that we explicitly recycle bitmaps. Old versions of Android need this to avoid bitmaps 'sticking' in memory, and it doesn't hurt on new versions. Also, explicitly empty the bitmap holder before creating a new bitmap. This avoids us holding more than one copy of the (potentially large) bitmaps. Many thanks!