mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 14:25:52 +00:00
Checking in patch from toml@us.ibm.com. This fixes bug 66413, crash when closing windows after using LiveConnect. r=me, sr=jband@netscaoe.com
This commit is contained in:
parent
e2d67392d5
commit
c291c89e75
@ -371,6 +371,9 @@ nsJSContext::~nsJSContext()
|
||||
if (!mContext)
|
||||
return;
|
||||
|
||||
// Clear our entry in the JSContext, bugzilla bug 66413
|
||||
::JS_SetContextPrivate(mContext, nsnull);
|
||||
|
||||
// Unregister our "javascript.options.*" pref-changed callback.
|
||||
nsresult rv;
|
||||
NS_WITH_SERVICE(nsIPref, prefs, kPrefServiceCID, &rv);
|
||||
|
Loading…
Reference in New Issue
Block a user