Backing out still some more of Bug 339774 to fix memleaks

This commit is contained in:
Olli.Pettay%helsinki.fi 2006-06-01 19:18:59 +00:00
Родитель 13212e493a
Коммит 9c79521db6
1 изменённых файлов: 2 добавлений и 1 удалений

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

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