From efc219fb41a0e005a288389b605735aa4495b1bd Mon Sep 17 00:00:00 2001 From: "bnesse%netscape.com" Date: Tue, 26 Mar 2002 20:06:25 +0000 Subject: [PATCH] Fix for bug 132325. Don't hold stale references to MRJ Plug-in Instances in LiveConnect. r=sdagley, sr= beard, a=asa. --- plugin/oji/MRJ/plugin/Source/LiveConnectNativeMethods.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin/oji/MRJ/plugin/Source/LiveConnectNativeMethods.cpp b/plugin/oji/MRJ/plugin/Source/LiveConnectNativeMethods.cpp index 9caf8ea9bab..ac3ce88f8a0 100644 --- a/plugin/oji/MRJ/plugin/Source/LiveConnectNativeMethods.cpp +++ b/plugin/oji/MRJ/plugin/Source/LiveConnectNativeMethods.cpp @@ -866,7 +866,6 @@ Java_netscape_javascript_JSObject_eval(JNIEnv* env, #else /* determine the plugin instance so we can obtain its codebase. */ // beard: should file a bug with Apple that JMJNIToAWTContext doesn't work. - // MRJPluginInstance* pluginInstance = theJVMPlugin->getPluginInstance(env); MRJPluginInstance* pluginInstance = GetCurrentInstance(env); #if 0 if (pluginInstance == NULL) { @@ -952,6 +951,11 @@ public: { } + ~GetWindowMessage() + { + NS_RELEASE(mPluginInstance); + } + virtual void execute(JNIEnv* env) { MRJSecurityContext* securityContext = getSecurityContext(mPluginInstance);