Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 41b775b4 authored by Sungsoo's avatar Sungsoo Committed by android-build-merger
Browse files

DO NOT MERGE) ExifInterface: Close the file when an exception happens

am: ad74e88f

Change-Id: Ic8a6e5b579c028a560436cdc6c3ca68a51cbf229
parents 6d7f2099 ad74e88f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1330,8 +1330,9 @@ public class ExifInterface {
        for (int i = 0; i < EXIF_TAGS.length; ++i) {
            mAttributes[i] = new HashMap();
        }
        InputStream in = null;
        try {
            InputStream in = new FileInputStream(mFilename);
            in = new FileInputStream(mFilename);
            getJpegAttributes(in);
            mIsSupportedFile = true;
        } catch (IOException e) {
@@ -1344,6 +1345,7 @@ public class ExifInterface {
            if (DEBUG) {
                printAttributes();
            }
            IoUtils.closeQuietly(in);
        }
    }