Commit 1626f004 authored by thestig's avatar thestig Committed by Commit bot

Cleanup: Slight simplification in the PDFiumEngine dtor.

The functions being called already checks for NULL input.

Review URL: https://codereview.chromium.org/1131093004

Cr-Commit-Position: refs/heads/master@{#330214}
parent 1cf60af0
......@@ -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_);
}
if (fpdf_availability_)
FPDFAvail_Destroy(fpdf_availability_);
FPDFAvail_Destroy(fpdf_availability_);
STLDeleteElements(&pages_);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment