mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Fix for bug 391209 (cycle collector crash with python objects). r/sr=jst, a=beltzner.
This commit is contained in:
parent
600836e7ed
commit
9d09ff8419
@ -105,7 +105,7 @@ NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(nsJSEventListener)
|
||||
NS_IMPL_CYCLE_COLLECTION_UNLINK_NSCOMPTR(mTarget)
|
||||
if (tmp->mContext) {
|
||||
if (tmp->mScopeObject) {
|
||||
nsContentUtils::DropScriptObjects(tmp->mContext->GetScriptTypeID(), this,
|
||||
nsContentUtils::DropScriptObjects(tmp->mContext->GetScriptTypeID(), tmp,
|
||||
&NS_CYCLE_COLLECTION_NAME(nsJSEventListener));
|
||||
tmp->mScopeObject = nsnull;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user