From 2b7233b40597469ce67af72ee19b766552a35138 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Mon, 14 Jan 2013 07:14:51 -0800 Subject: Revert c4130b7caa3ac11d4c1b9fdebf8459270a6b3ff1: maybe some still link original bitmap after scaling? --- subsonic-android/src/github/daneren2005/dsub/util/FileUtil.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/subsonic-android/src/github/daneren2005/dsub/util/FileUtil.java b/subsonic-android/src/github/daneren2005/dsub/util/FileUtil.java index d210920b..43eccdf8 100644 --- a/subsonic-android/src/github/daneren2005/dsub/util/FileUtil.java +++ b/subsonic-android/src/github/daneren2005/dsub/util/FileUtil.java @@ -102,9 +102,7 @@ public class FileUtil { File albumArtFile = getAlbumArtFile(context, entry); if (albumArtFile.exists()) { Bitmap bitmap = BitmapFactory.decodeFile(albumArtFile.getPath()); - Bitmap scaledBitmap = (bitmap == null) ? null : Bitmap.createScaledBitmap(bitmap, size, size, true); - bitmap.recycle(); - return scaledBitmap; + return (bitmap == null) ? null : Bitmap.createScaledBitmap(bitmap, size, size, true); } return null; } -- cgit v1.2.3