From fa9cbeb746c8d065de8f6b55cb1d64cb683fa93a Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Tue, 20 May 2014 22:54:28 +0200 Subject: close input stream --- src/eu/siacs/conversations/persistance/FileBackend.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/eu/siacs') diff --git a/src/eu/siacs/conversations/persistance/FileBackend.java b/src/eu/siacs/conversations/persistance/FileBackend.java index c2981a2a..f76b079d 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); -- cgit v1.2.3