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

This commit is contained in:
Ms2ger 2012-04-14 15:10:05 +02:00
Родитель 8ceb320aff
Коммит 69966a9faf
2 изменённых файлов: 4 добавлений и 3 удалений

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

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

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

@ -1606,7 +1606,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()
{