From f062134582cafcede9750f3a660bc05f4b2ce39a Mon Sep 17 00:00:00 2001 From: "peterv%propagandism.org" Date: Thu, 28 Feb 2008 13:12:43 +0000 Subject: [PATCH] Fix for bug 391209 (cycle collector crash with python objects). r/sr=jst, a=beltzner. git-svn-id: svn://10.0.0.236/trunk@246721 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/dom/src/events/nsJSEventListener.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/dom/src/events/nsJSEventListener.cpp b/mozilla/dom/src/events/nsJSEventListener.cpp index c0bd9708f8a..06fed234bb5 100644 --- a/mozilla/dom/src/events/nsJSEventListener.cpp +++ b/mozilla/dom/src/events/nsJSEventListener.cpp @@ -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; }