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:
jst%netscape.com 2001-02-02 06:05:17 +00:00
Родитель e2d67392d5
Коммит c291c89e75
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -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);