Skip to content

Commit

Permalink
Backport of r110121
Browse files Browse the repository at this point in the history
svn path=/branches/mono-2-0/mcs/; revision=110122
  • Loading branch information
grendello committed Aug 11, 2008
1 parent 1c482a5 commit b2882b3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mcs/class/System.Web/System.Web.Caching/Cache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,10 @@ object Remove (string key, CacheItemRemovedReason reason, bool doLock)
}

if (it != null) {
Timer t = it.Timer;
if (t != null)
t.Dispose ();

if (it.Dependency != null) {
#if NET_2_0
it.Dependency.SetCache (null);
Expand Down
6 changes: 6 additions & 0 deletions mcs/class/System.Web/System.Web.Caching/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2008-08-11 Marek Habersack <mhabersack@novell.com>

* Cache.cs: dispose item timer when removing an entry. Fixes bug
#416076. Patch provided by Adriaan van Kekem
<adriaanvk@gmail.com>, thanks!

2008-06-18 Marek Habersack <mhabersack@novell.com>

* SqlCacheDependency.cs: added
Expand Down

0 comments on commit b2882b3

Please sign in to comment.