summaryrefslogtreecommitdiffstats
path: root/src/java/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/com')
-rw-r--r--src/java/com/jogamp/gluegen/GlueGen.java3
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