Revision: 4467
          http://sourceforge.net/p/jump-pilot/code/4467
Author:   michaudm
Date:     2015-05-27 05:25:40 +0000 (Wed, 27 May 2015)
Log Message:
-----------
shx file was not closed

Modified Paths:
--------------
    core/trunk/ChangeLog
    core/trunk/src/com/vividsolutions/jump/io/ShapefileReader.java

Modified: core/trunk/ChangeLog
===================================================================
--- core/trunk/ChangeLog        2015-05-25 08:00:54 UTC (rev 4466)
+++ core/trunk/ChangeLog        2015-05-27 05:25:40 UTC (rev 4467)
@@ -1,6 +1,9 @@
 # for display continuity sake please use 2 spaces instead of tabs
 
 2015-05-25 mmichaud <m.michael.mich...@orange.fr>
+  * shx file was not closed
+
+2015-05-25 mmichaud <m.michael.mich...@orange.fr>
   * update SetAttributes extension to version 0.6.1 : shorter initial delay
     for right-click tooltip
 

Modified: core/trunk/src/com/vividsolutions/jump/io/ShapefileReader.java
===================================================================
--- core/trunk/src/com/vividsolutions/jump/io/ShapefileReader.java      
2015-05-25 08:00:54 UTC (rev 4466)
+++ core/trunk/src/com/vividsolutions/jump/io/ShapefileReader.java      
2015-05-27 05:25:40 UTC (rev 4467)
@@ -145,6 +145,7 @@
         try {
                collection = shx == null ? myshape.read(factory) : 
myshape.readFromIndex(factory, shx);
         } finally {
+            if (shx != null) shx.close();
                myshape.close(); //ensure we can delete input shape files 
before task is closed
         }
         FeatureSchema fs = new FeatureSchema();


------------------------------------------------------------------------------
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to