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
This commit is contained in:
kin%netscape.com
1999-10-25 14:15:34 +00:00
parent abe3c3c6c8
commit d9ba7b42e8
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)