mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-31 19:10:36 +00:00
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:
parent
a5151d4635
commit
0e64506603
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user