• R/O
  • SSH
  • HTTPS

alinous-core: Commit


Commit MetaInfo

Revision123 (tree)
Time2007-11-25 20:27:47
Authori-zuka

Log Message

(empty log message)

Change Summary

Incremental Difference

--- AlinousCoreIDE1.0/AlinousWeb/src/org/alinous/web/AlinousServlet.java (revision 122)
+++ AlinousCoreIDE1.0/AlinousWeb/src/org/alinous/web/AlinousServlet.java (revision 123)
@@ -105,9 +105,10 @@
105105
106106 System.out.println(this.alinousHome);
107107
108+ InputStream stream = null;
108109 try {
109110 URL url = this.getServletContext().getResource("/mimetypes.xml");
110- InputStream stream = url.openStream();
111+ stream = url.openStream();
111112
112113 //System.out.println("*********************** stream : " + stream);
113114
@@ -121,6 +122,12 @@
121122 }
122123
123124 return;
125+ }finally{
126+ if(stream != null){
127+ try {
128+ stream.close();
129+ } catch (IOException e) {}
130+ }
124131 }
125132
126133 //AlinousDebug.debugOut("Debug Mode : " + AlinousCore.debug);
Show on old repository browser