aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/icedteanp/java
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/icedteanp/java')
-rw-r--r--plugin/icedteanp/java/netscape/javascript/JSObject.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin/icedteanp/java/netscape/javascript/JSObject.java b/plugin/icedteanp/java/netscape/javascript/JSObject.java
index 293f2be..a5bf41f 100644
--- a/plugin/icedteanp/java/netscape/javascript/JSObject.java
+++ b/plugin/icedteanp/java/netscape/javascript/JSObject.java
@@ -259,6 +259,11 @@ public final class JSObject {
* JavaScript object.
*/
protected void finalize() {
+
+ // Proceed if this is a valid object (0L == default long == invalid)
+ if (internal == 0L)
+ return;
+
PluginDebug.debug("JSObject.finalize ");
PluginAppletViewer.JavaScriptFinalize(internal);
}