(empty log message)
@@ -105,9 +105,10 @@ | ||
105 | 105 | |
106 | 106 | System.out.println(this.alinousHome); |
107 | 107 | |
108 | + InputStream stream = null; | |
108 | 109 | try { |
109 | 110 | URL url = this.getServletContext().getResource("/mimetypes.xml"); |
110 | - InputStream stream = url.openStream(); | |
111 | + stream = url.openStream(); | |
111 | 112 | |
112 | 113 | //System.out.println("*********************** stream : " + stream); |
113 | 114 |
@@ -121,6 +122,12 @@ | ||
121 | 122 | } |
122 | 123 | |
123 | 124 | return; |
125 | + }finally{ | |
126 | + if(stream != null){ | |
127 | + try { | |
128 | + stream.close(); | |
129 | + } catch (IOException e) {} | |
130 | + } | |
124 | 131 | } |
125 | 132 | |
126 | 133 | //AlinousDebug.debugOut("Debug Mode : " + AlinousCore.debug); |