You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by al...@apache.org on 2007/06/22 14:31:29 UTC
svn commit: r549797 -
/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Application.java
Author: almaw
Date: Fri Jun 22 05:31:28 2007
New Revision: 549797
URL: http://svn.apache.org/viewvc?view=rev&rev=549797
Log:
WICKET-625 - Clear markup cache too.
Modified:
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Application.java
Modified: incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Application.java
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Application.java?view=diff&rev=549797&r1=549796&r2=549797
==============================================================================
--- incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Application.java (original)
+++ incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Application.java Fri Jun 22 05:31:28 2007
@@ -821,9 +821,11 @@
*/
protected void internalDestroy()
{
- // Clear property resolver cache of Class keys.
+ // Clear caches of Class keys so the classloader can be garbage
+ // collected (WICKET-625)
PropertyResolver.destroy(this);
-
+ getMarkupSettings().getMarkupCache().clear();
+
onDestroy();
callDestroyers();
applicationKeyToApplication.remove(getApplicationKey());