Crash fix: Kill an extra NS_RELEASE in GetSelectedIndex
git-svn-id: svn://10.0.0.236/trunk@29560 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
d40d103c73
commit
d669c2bb5b
@ -328,7 +328,6 @@ nsHTMLSelectElement::GetSelectedIndex(PRInt32* aValue)
|
||||
if (NS_OK == nsGenericHTMLElement::GetPrimaryFrame(this, formControlFrame)) {
|
||||
nsString value;
|
||||
formControlFrame->GetProperty(nsHTMLAtoms::selectedindex, value);
|
||||
NS_RELEASE(formControlFrame);
|
||||
if (value.Length() > 0) {
|
||||
PRInt32 retval = 0;
|
||||
PRInt32 error = 0;
|
||||
|
||||
@ -328,7 +328,6 @@ nsHTMLSelectElement::GetSelectedIndex(PRInt32* aValue)
|
||||
if (NS_OK == nsGenericHTMLElement::GetPrimaryFrame(this, formControlFrame)) {
|
||||
nsString value;
|
||||
formControlFrame->GetProperty(nsHTMLAtoms::selectedindex, value);
|
||||
NS_RELEASE(formControlFrame);
|
||||
if (value.Length() > 0) {
|
||||
PRInt32 retval = 0;
|
||||
PRInt32 error = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user