You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2013/10/21 18:11:01 UTC

svn commit: r1534261 - /commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/examples/ApacheImagingSpeedAndMemoryTest.java

Author: sebb
Date: Mon Oct 21 16:11:01 2013
New Revision: 1534261

URL: http://svn.apache.org/r1534261
Log:
Ensure resource is closed

Modified:
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/examples/ApacheImagingSpeedAndMemoryTest.java

Modified: commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/examples/ApacheImagingSpeedAndMemoryTest.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/examples/ApacheImagingSpeedAndMemoryTest.java?rev=1534261&r1=1534260&r2=1534261&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/examples/ApacheImagingSpeedAndMemoryTest.java (original)
+++ commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/examples/ApacheImagingSpeedAndMemoryTest.java Mon Oct 21 16:11:01 2013
@@ -263,6 +263,8 @@ public class ApacheImagingSpeedAndMemory
             } catch (final IOException ioex) {
                 ioex.printStackTrace();
                 System.exit(-1);
+            } finally {
+            	fmt.close();            	
             }
 
             try {