diff --git a/layout/html/forms/src/nsForm.cpp b/layout/html/forms/src/nsForm.cpp index 984e484e310..87e1ba000cf 100644 --- a/layout/html/forms/src/nsForm.cpp +++ b/layout/html/forms/src/nsForm.cpp @@ -267,6 +267,7 @@ nsForm::~nsForm() mElements->ReleaseForm(); NS_RELEASE(mElements); } + NS_IF_RELEASE(mAttributes); } nsresult nsForm::QueryInterface(REFNSIID aIID, void** aInstancePtr)