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:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user