Chromium Code Reviews| Index: pdf/pdfium/pdfium_engine.cc |
| diff --git a/pdf/pdfium/pdfium_engine.cc b/pdf/pdfium/pdfium_engine.cc |
| index e580fede6aba69640b283f2395d9c2b5252c2021..fc0bc9b3aa7a6e683ad568c338c951365f4aee5a 100644 |
| --- a/pdf/pdfium/pdfium_engine.cc |
| +++ b/pdf/pdfium/pdfium_engine.cc |
| @@ -661,17 +661,11 @@ PDFiumEngine::~PDFiumEngine() { |
| pages_[i]->Unload(); |
| if (doc_) { |
| - if (form_) { |
| - FORM_DoDocumentAAction(form_, FPDFDOC_AACTION_WC); |
| - } |
| + FORM_DoDocumentAAction(form_, FPDFDOC_AACTION_WC); |
| FPDF_CloseDocument(doc_); |
| - if (form_) { |
| - FPDFDOC_ExitFormFillEnvironment(form_); |
| - } |
| + FPDFDOC_ExitFormFillEnvironment(form_); |
|
Tom Sepez
2015/05/15 15:06:31
Curious about the ordering here, in that the same
Lei Zhang
2015/05/15 21:23:09
It used to be the other way around, but changed he
|
| } |
| - |
| - if (fpdf_availability_) |
| - FPDFAvail_Destroy(fpdf_availability_); |
| + FPDFAvail_Destroy(fpdf_availability_); |
| STLDeleteElements(&pages_); |
| } |