diff options
author | Sven Gothel <[email protected]> | 2010-11-25 03:42:34 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-11-25 03:42:34 +0100 |
commit | 4e4f6ce89d01ab36dc7db258fe64feb0b1113c16 (patch) | |
tree | 752c408a1936e11a7a8559b61b35af8c9f0892a8 /src/java | |
parent | 29e13c6e45d6db75d7c6322ac0f88a30c200cb72 (diff) |
GlueGen: Close in/out streams to allow deleteOnExit() to succeed on Windows
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/com/jogamp/gluegen/GlueGen.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/java/com/jogamp/gluegen/GlueGen.java b/src/java/com/jogamp/gluegen/GlueGen.java index 04a4343..286aac4 100644 --- a/src/java/com/jogamp/gluegen/GlueGen.java +++ b/src/java/com/jogamp/gluegen/GlueGen.java @@ -109,6 +109,7 @@ public class GlueGen implements GlueEmitterControls { preprocessor.run(reader, filename); outStream.flush(); + outStream.close(); FileInputStream inStream = new FileInputStream(out); DataInputStream dis = new DataInputStream(inStream); @@ -142,6 +143,8 @@ public class GlueGen implements GlueEmitterControls { headerParser.setASTNodeClass(TNode.class.getName()); // walk that tree headerParser.translationUnit(parser.getAST()); + dis.close(); + inStream.close(); /** // For debugging: Dump type dictionary and struct dictionary to System.err |