From: David A. Velasco Date: Wed, 10 Dec 2014 11:48:31 +0000 (+0100) Subject: Hurry up release of source bitmap in rotations X-Git-Tag: oc-android-1.7.0_signed~81^2~1 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/154188c38f46865d525a6962fdfdc4f72d47c777?ds=inline;hp=--cc Hurry up release of source bitmap in rotations --- 154188c38f46865d525a6962fdfdc4f72d47c777 diff --git a/src/com/owncloud/android/utils/BitmapUtils.java b/src/com/owncloud/android/utils/BitmapUtils.java index d87f9bd6..70367278 100644 --- a/src/com/owncloud/android/utils/BitmapUtils.java +++ b/src/com/owncloud/android/utils/BitmapUtils.java @@ -159,6 +159,9 @@ public class BitmapUtils { // Rotate the bitmap resultBitmap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), matrix, true); + if (resultBitmap != bitmap) { + bitmap.recycle(); + } } catch (Exception exception) {