Issue 548, delete() before close() on FileConnection

git-svn-id: https://zxing.googlecode.com/svn/trunk@1582 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2010-09-10 12:40:18 +00:00
parent fa10404128
commit 1a83572864

View file

@ -228,9 +228,9 @@ final class ZXingLMMainScreen extends MainScreen {
} }
if (file != null && file.exists()) { if (file != null && file.exists()) {
if (file.isOpen()) { if (file.isOpen()) {
file.delete();
file.close(); file.close();
} }
file.delete();
Log.info("Deleted image file."); Log.info("Deleted image file.");
} }
} catch (IOException ioe) { } catch (IOException ioe) {