close input stream

This commit is contained in:
Daniel Gultsch 2014-05-20 22:54:28 +02:00
parent 7f0efa089f
commit fa9cbeb746

View File

@ -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);