diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-01-10 20:19:20 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-01-11 15:19:34 +0000 |
commit | f30db116a89652de0da03e27513753f0e432fd1a (patch) | |
tree | 91886a9cdfc9ead7acdefa86b5a7b7e876e3e894 /apps/mudraw.c | |
parent | 57c0f109b4c0d13813ca6cbc463468b503f91048 (diff) | |
download | mupdf-f30db116a89652de0da03e27513753f0e432fd1a.tar.xz |
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.
Diffstat (limited to 'apps/mudraw.c')
0 files changed, 0 insertions, 0 deletions