Fix RouteCollection not correctly clearing itself
authorJames Venning <jamie.venning@hotmail.com>
Wed, 6 Jan 2016 05:09:02 +0000 (15:09 +1000)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Fri, 8 Jan 2016 19:47:59 +0000 (20:47 +0100)
mcs/class/System.Web/System.Web.Routing/RouteCollection.cs

index d53c063441e031e840b38712192ef849e2c4bbae..a8ae41da81efdf3bd7c1d45e9527320b817627dc 100644 (file)
@@ -107,8 +107,10 @@ namespace System.Web.Routing
 
                protected override void ClearItems ()
                {
-                       lock (GetWriteLock ())
+                       lock (GetWriteLock ()) {
                                base.ClearItems ();
+                               d.Clear ();
+                       }
                }
 
                public IDisposable GetReadLock ()