mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 745427 - Fix XPCWrappedNativeScope::SetContext; r=gal
This commit is contained in:
parent
d881c068c1
commit
3a093c7580
@ -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
|
||||
|
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user