mirror of
https://github.com/zxing/zxing.git
synced 2025-01-12 11:47:26 -08:00
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:
parent
fa10404128
commit
1a83572864
|
@ -228,9 +228,9 @@ final class ZXingLMMainScreen extends MainScreen {
|
|||
}
|
||||
if (file != null && file.exists()) {
|
||||
if (file.isOpen()) {
|
||||
file.delete();
|
||||
file.close();
|
||||
}
|
||||
file.delete();
|
||||
Log.info("Deleted image file.");
|
||||
}
|
||||
} catch (IOException ioe) {
|
||||
|
|
Loading…
Reference in a new issue