diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-08-21 17:09:37 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-08-21 17:09:37 +0000 |
commit | b243af2bc77269287d267f122c96c87b9cea165a (patch) | |
tree | 249d93bbd4c61cb6e0a93093965e2cc63c217899 /src/java-1.4/org/apache/fop | |
parent | f53181fd9465de68db0b07d72c73b37c4b6e0c0c (diff) | |
download | xmlgraphics-fop-b243af2bc77269287d267f122c96c87b9cea165a.tar.gz xmlgraphics-fop-b243af2bc77269287d267f122c96c87b9cea165a.zip |
Code simplification.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@234273 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java-1.4/org/apache/fop')
-rw-r--r-- | src/java-1.4/org/apache/fop/image/ImageIOImage.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/java-1.4/org/apache/fop/image/ImageIOImage.java b/src/java-1.4/org/apache/fop/image/ImageIOImage.java index 882f36d92..56bb863b7 100644 --- a/src/java-1.4/org/apache/fop/image/ImageIOImage.java +++ b/src/java-1.4/org/apache/fop/image/ImageIOImage.java @@ -27,6 +27,8 @@ import java.awt.image.BufferedImage; // ImageIO import javax.imageio.ImageIO; +import org.apache.commons.io.IOUtils; + /** * FopImage object using ImageIO. * @see AbstractFopImage @@ -145,6 +147,9 @@ public class ImageIOImage extends AbstractFopImage { } catch (Exception ex) { log.error("Error while loading image: " + ex.getMessage(), ex); return false; + } finally { + IOUtils.closeQuietly(inputStream); + inputStream = null; } return true; } |