Permalink
Browse files

Fixing bitmap memory leak

  • Loading branch information...
steveydee82 committed Feb 26, 2013
1 parent 3b019bf commit 460f71ed323b0b64386408341097de3b0c82987d
@@ -30,8 +30,8 @@ private Bitmap LoadBitmap(string localPath, bool shouldCache)
byte[] contents;
if (!fileStore.TryReadBinaryFile(localPath, out contents))
return null;
var image = BitmapFactory.DecodeByteArray(contents, 0, contents.Length);
var options = new BitmapFactory.Options() {InPurgeable = true};
var image = BitmapFactory.DecodeByteArray(contents, 0, contents.Length, options);
return image;
}

0 comments on commit 460f71e

Please sign in to comment.