зеркало из https://github.com/mozilla/pjs.git
Backing out still some more of Bug 339774 to fix memleaks
This commit is contained in:
Родитель
13212e493a
Коммит
9c79521db6
|
@ -687,13 +687,14 @@ NS_METHOD nsDOMEvent::DuplicatePrivateData()
|
||||||
{
|
{
|
||||||
nsMutationEvent* mutationEvent = new nsMutationEvent(PR_FALSE, msg);
|
nsMutationEvent* mutationEvent = new nsMutationEvent(PR_FALSE, msg);
|
||||||
NS_ENSURE_TRUE(mutationEvent, NS_ERROR_OUT_OF_MEMORY);
|
NS_ENSURE_TRUE(mutationEvent, NS_ERROR_OUT_OF_MEMORY);
|
||||||
|
/* Disabling for now. This creates some leaks.
|
||||||
nsMutationEvent* oldMutationEvent =
|
nsMutationEvent* oldMutationEvent =
|
||||||
NS_STATIC_CAST(nsMutationEvent*, mEvent);
|
NS_STATIC_CAST(nsMutationEvent*, mEvent);
|
||||||
mutationEvent->mRelatedNode = oldMutationEvent->mRelatedNode;
|
mutationEvent->mRelatedNode = oldMutationEvent->mRelatedNode;
|
||||||
mutationEvent->mAttrName = oldMutationEvent->mAttrName;
|
mutationEvent->mAttrName = oldMutationEvent->mAttrName;
|
||||||
mutationEvent->mPrevAttrValue = oldMutationEvent->mPrevAttrValue;
|
mutationEvent->mPrevAttrValue = oldMutationEvent->mPrevAttrValue;
|
||||||
mutationEvent->mNewAttrValue = oldMutationEvent->mNewAttrValue;
|
mutationEvent->mNewAttrValue = oldMutationEvent->mNewAttrValue;
|
||||||
mutationEvent->mAttrChange = oldMutationEvent->mAttrChange;
|
mutationEvent->mAttrChange = oldMutationEvent->mAttrChange;*/
|
||||||
newEvent = mutationEvent;
|
newEvent = mutationEvent;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче