mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -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 != 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) {
|
||||||
|
|
Loading…
Reference in a new issue