Backing out still some more of Bug 339774 to fix memleaks

git-svn-id: svn://10.0.0.236/trunk@198817 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
Olli.Pettay%helsinki.fi 2006-06-01 19:18:59 +00:00
parent 0e196b429d
commit d59c31d669

View File

@ -687,13 +687,14 @@ NS_METHOD nsDOMEvent::DuplicatePrivateData()
{
nsMutationEvent* mutationEvent = new nsMutationEvent(PR_FALSE, msg);
NS_ENSURE_TRUE(mutationEvent, NS_ERROR_OUT_OF_MEMORY);
/* Disabling for now. This creates some leaks.
nsMutationEvent* oldMutationEvent =
NS_STATIC_CAST(nsMutationEvent*, mEvent);
mutationEvent->mRelatedNode = oldMutationEvent->mRelatedNode;
mutationEvent->mAttrName = oldMutationEvent->mAttrName;
mutationEvent->mPrevAttrValue = oldMutationEvent->mPrevAttrValue;
mutationEvent->mNewAttrValue = oldMutationEvent->mNewAttrValue;
mutationEvent->mAttrChange = oldMutationEvent->mAttrChange;
mutationEvent->mAttrChange = oldMutationEvent->mAttrChange;*/
newEvent = mutationEvent;
break;
}