release capabilities file after use
authorKonstantin Triger <kostat@mono-cvs.ximian.com>
Sun, 13 Jan 2008 14:54:53 +0000 (14:54 -0000)
committerKonstantin Triger <kostat@mono-cvs.ximian.com>
Sun, 13 Jan 2008 14:54:53 +0000 (14:54 -0000)
svn path=/trunk/mcs/; revision=92799

mcs/class/System.Web/System.Web/CapabilitiesLoader.cs

index d0c41e25abc9513755a6ca407a93ed669ca2da9d..baa21d84ed62d6b9db26b1c44a062c530c588113 100644 (file)
@@ -442,6 +442,7 @@ namespace System.Web
 
                        TextReader input = new StreamReader (File.OpenRead (filename));
 #endif
+                       using (input) {
                        string str;
                        Hashtable allhash = new Hashtable ();
                        int aux = 0;
@@ -476,6 +477,7 @@ namespace System.Web
 
                                data.Parent = (BrowserData) allhash [pname];
                        }
+                       }
                }
 
                static char [] eq = new char []{'='};