Permalink
Browse files

Fix bug where the output file wasn't being properly closed.

  • Loading branch information...
ndw committed Aug 17, 2014
1 parent e5cf11e commit e9c16d6ae4901daa6530ed2e3be058f3daac9133
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/com/xmlcalabash/library/XSLFormatter.java
@@ -111,6 +111,8 @@ public void store(OutputStream content) throws IOException {
processor.format(source.read(),out,contentType);
} catch (SaxonApiException e) {
throw new XProcException(step.getNode(), "Failed to process FO document", e);
+ } finally {
+ out.close();
}
}
});

0 comments on commit e9c16d6

Please sign in to comment.