diff --git a/mozilla/layout/html/forms/src/nsFormFrame.cpp b/mozilla/layout/html/forms/src/nsFormFrame.cpp
index 82e2e249e39..3f8c6aabe35 100644
--- a/mozilla/layout/html/forms/src/nsFormFrame.cpp
+++ b/mozilla/layout/html/forms/src/nsFormFrame.cpp
@@ -1500,6 +1500,7 @@ nsresult nsFormFrame::ProcessAsMultipart(nsIFormProcessor* aFormProcessor,nsIFil
NS_ASSERTION(NS_SUCCEEDED(rv), "Generating the form post temp file failed.\n");
NS_IF_RELEASE(encoder);
+ NS_IF_RELEASE(platformencoder);
return rv;
}