diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2014-05-20 22:54:28 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2014-05-20 22:54:28 +0200 |
commit | fa9cbeb746c8d065de8f6b55cb1d64cb683fa93a (patch) | |
tree | 0ec206e6ad6346fb225966f1880ad811eaa6d14f | |
parent | 7f0efa089f65df73cddd3018b5c5885d8e54c71f (diff) |
close input stream
-rw-r--r-- | src/eu/siacs/conversations/persistance/FileBackend.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/persistance/FileBackend.java b/src/eu/siacs/conversations/persistance/FileBackend.java index c2981a2ab..f76b079d1 100644 --- a/src/eu/siacs/conversations/persistance/FileBackend.java +++ b/src/eu/siacs/conversations/persistance/FileBackend.java @@ -109,6 +109,7 @@ public class FileBackend { BitmapFactory.Options options = new BitmapFactory.Options(); options.inSampleSize = 2; originalBitmap = BitmapFactory.decodeStream(is, null, options); + is.close(); } if (originalBitmap == null) { throw new ImageCopyException(R.string.error_not_an_image_file); |