diff --git a/mozilla/content/html/content/src/nsHTMLSelectElement.cpp b/mozilla/content/html/content/src/nsHTMLSelectElement.cpp
index 39a0215bcae..a08b69f7522 100644
--- a/mozilla/content/html/content/src/nsHTMLSelectElement.cpp
+++ b/mozilla/content/html/content/src/nsHTMLSelectElement.cpp
@@ -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;
diff --git a/mozilla/layout/html/content/src/nsHTMLSelectElement.cpp b/mozilla/layout/html/content/src/nsHTMLSelectElement.cpp
index 39a0215bcae..a08b69f7522 100644
--- a/mozilla/layout/html/content/src/nsHTMLSelectElement.cpp
+++ b/mozilla/layout/html/content/src/nsHTMLSelectElement.cpp
@@ -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;