From d9ba7b42e8dfd8e513b1029b8019aad28deb11b7 Mon Sep 17 00:00:00 2001 From: "kin%netscape.com" Date: Mon, 25 Oct 1999 14:15:34 +0000 Subject: [PATCH] Fix for bug #16701: Editor API Log playback of Insert HRule crashes in DOM code and bug #16848: DOM Crash - Removed extra NS_RELEASE(attrPrivate) call that was releasing attrPrivate one too many times, and causing nsDOMAttributeMap::SetNamedItem() to crash. r=vidur@netscape.com git-svn-id: svn://10.0.0.236/trunk@51716 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/base/src/nsDOMAttributeMap.cpp | 1 - mozilla/layout/base/src/nsDOMAttributeMap.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/mozilla/content/base/src/nsDOMAttributeMap.cpp b/mozilla/content/base/src/nsDOMAttributeMap.cpp index 1168fa0cf18..bcd0b21a489 100644 --- a/mozilla/content/base/src/nsDOMAttributeMap.cpp +++ b/mozilla/content/base/src/nsDOMAttributeMap.cpp @@ -342,7 +342,6 @@ nsDOMAttributeMap::SetNamedItem(nsIDOMNode *aNode, nsIDOMNode **aReturn) else { attrPrivate->SetContent(mContent); attrPrivate->SetName(name); - NS_RELEASE(attrPrivate); // Add the new attribute node to the hash table (maintaining // a reference to it) diff --git a/mozilla/layout/base/src/nsDOMAttributeMap.cpp b/mozilla/layout/base/src/nsDOMAttributeMap.cpp index 1168fa0cf18..bcd0b21a489 100644 --- a/mozilla/layout/base/src/nsDOMAttributeMap.cpp +++ b/mozilla/layout/base/src/nsDOMAttributeMap.cpp @@ -342,7 +342,6 @@ nsDOMAttributeMap::SetNamedItem(nsIDOMNode *aNode, nsIDOMNode **aReturn) else { attrPrivate->SetContent(mContent); attrPrivate->SetName(name); - NS_RELEASE(attrPrivate); // Add the new attribute node to the hash table (maintaining // a reference to it)