aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/icedteanp/java/sun
diff options
context:
space:
mode:
authorDeepak Bhole <[email protected]>2012-01-27 16:20:22 -0500
committerDeepak Bhole <[email protected]>2012-01-27 16:20:22 -0500
commit83a814966b14deb946e6c9fa9b55a75b9e22472d (patch)
treefcbbbb299fb410c64aa9f8ae7914775586f3454c /plugin/icedteanp/java/sun
parent8f98160184cfe24c20677937db590da40ea1926f (diff)
PR852: Classloader not being flushed after last applet from a site is closed
Diffstat (limited to 'plugin/icedteanp/java/sun')
-rw-r--r--plugin/icedteanp/java/sun/applet/PluginAppletViewer.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java b/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java
index f51c1e8..6f4f2eb 100644
--- a/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java
+++ b/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java
@@ -1625,6 +1625,9 @@ public class PluginAppletViewer extends XEmbeddedFrame
appletShutdown(p);
appletPanels.removeElement(p);
+
+ // Mark classloader unusable
+ ((JNLPClassLoader) cl).decrementLoaderUseCount();
try {
SwingUtilities.invokeAndWait(new Runnable() {