aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src
diff options
context:
space:
mode:
Diffstat (limited to 'subsonic-android/src')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/util/FileUtil.java4
1 files changed, 1 insertions, 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;
}