]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/load/FileCacher.java
Version 15.2, November 2013
[GpsPrune.git] / tim / prune / load / FileCacher.java
index da354aac8b253895324e84b8a2b67d0ed74bbcb3..22383c6acb544f6f7e754f50e8b98eae1d645120 100644 (file)
@@ -47,7 +47,9 @@ public class FileCacher
                                }
                                while (currLine != null)
                                {
-                                       if (currLine.indexOf('\0') >= 0) {
+                                       if (currLine.indexOf('\0') >= 0)
+                                       {
+                                               try {reader.close();} catch (IOException ioe2) {}
                                                return; // it's a binary file, shouldn't use this cacher
                                        }
                                        if (currLine.trim().length() > 0)