static void destroyLibraryIfNeeded() { Mutex::Autolock _l(sLock); sUnmatchedInitRequestCount--; if (sUnmatchedInitRequestCount == 0) { FPDF_DestroyLibrary(); } }
void EmbedderTest::TearDown() { if (document_) { FORM_DoDocumentAAction(form_handle_, FPDFDOC_AACTION_WC); FPDFDOC_ExitFormFillEnvironment(form_handle_); FPDF_CloseDocument(document_); } FPDFAvail_Destroy(avail_); FPDF_DestroyLibrary(); delete loader_; }
void EmbedderTest::TearDown() { if (document_) { FORM_DoDocumentAAction(form_handle_, FPDFDOC_AACTION_WC); FPDFDOC_ExitFormFillEnvironment(form_handle_); FPDF_CloseDocument(document_); } FPDFAvail_Destroy(avail_); FPDF_DestroyLibrary(); v8::V8::ShutdownPlatform(); delete platform_; delete loader_; free(file_contents_); }
void Release() { ::EnterCriticalSection(&cs); refCount--; if (refCount == 0) { FPDF_DestroyLibrary(); v8::V8::ShutdownPlatform(); delete platform; } ::LeaveCriticalSection(&cs); }
CS_PDFIUM_EXPORT void destroy() { FPDF_DestroyLibrary(); }
pdfshow::~pdfshow() { FPDF_CloseDocument(pdf_doc); FPDF_DestroyLibrary(); }