Fix build broken at 506df426d5d6.
[pdfium.git] / fpdfsdk / src / fsdk_baseform.cpp
index ca0c29e..eab9f91 100644 (file)
@@ -2190,7 +2190,7 @@ FX_BOOL CPDFSDK_InterForm::SubmitForm(const CFX_WideString& sDestination,
 
   pEnv->JS_docSubmitForm(pBuffer, nBufSize, sDestination.c_str());
 
-  if (bUrlEncoded && pBuffer) {
+  if (bUrlEncoded) {
     FX_Free(pBuffer);
     pBuffer = NULL;
   }