Bug 745427 - Fix XPCWrappedNativeScope::SetContext; r=gal

This commit is contained in:
Ms2ger 2012-05-05 11:00:04 +02:00
parent d881c068c1
commit 3a093c7580
2 changed files with 4 additions and 3 deletions

View File

@ -77,8 +77,9 @@ XPCContext::~XPCContext()
for (PRCList *scopeptr = PR_NEXT_LINK(&mScopes);
scopeptr != &mScopes;
scopeptr = PR_NEXT_LINK(scopeptr)) {
XPCWrappedNativeScope *scope = (XPCWrappedNativeScope *)scopeptr;
scope->SetContext(nsnull);
XPCWrappedNativeScope *scope =
static_cast<XPCWrappedNativeScope*>(scopeptr);
scope->ClearContext();
}
// we do not call JS_RemoveArgumentFormatter because we now only

View File

@ -1545,7 +1545,7 @@ public:
static void InitStatics() { gScopes = nsnull; gDyingScopes = nsnull; }
XPCContext *GetContext() { return mContext; }
void SetContext(XPCContext *xpcc) { mContext = nsnull; }
void ClearContext() { mContext = nsnull; }
nsDataHashtable<nsDepCharHashKey, JSObject*>& GetCachedDOMPrototypes()
{