From 1a835728649cb6728657022e333e8770ab6ecfda Mon Sep 17 00:00:00 2001 From: srowen Date: Fri, 10 Sep 2010 12:40:18 +0000 Subject: [PATCH] Issue 548, delete() before close() on FileConnection git-svn-id: https://zxing.googlecode.com/svn/trunk@1582 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- rim/src/com/google/zxing/client/rim/ZXingLMMainScreen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rim/src/com/google/zxing/client/rim/ZXingLMMainScreen.java b/rim/src/com/google/zxing/client/rim/ZXingLMMainScreen.java index 16f229e0b..55d34c6ab 100644 --- a/rim/src/com/google/zxing/client/rim/ZXingLMMainScreen.java +++ b/rim/src/com/google/zxing/client/rim/ZXingLMMainScreen.java @@ -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) {