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
This commit is contained in:
kin%netscape.com 1999-10-25 14:15:34 +00:00
parent a5151d4635
commit 0e64506603
2 changed files with 0 additions and 2 deletions

View File

@ -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)

View File

@ -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)