cef/patch/patches/pdfium_print_549365.patch

36 lines
880 B
Diff
Raw Normal View History

diff --git BUILD.gn BUILD.gn
index d7c8640a2..7f508fdae 100644
--- BUILD.gn
+++ BUILD.gn
@@ -231,6 +231,10 @@ jumbo_static_library("pdfium") {
if (pdf_is_complete_lib) {
complete_static_lib = true
}
+
+ include_dirs = [
+ "//v8/include",
+ ]
}
jumbo_static_library("test_support") {
diff --git fpdfsdk/fpdfview.cpp fpdfsdk/fpdfview.cpp
index e890aa009..cabb73bb6 100644
--- fpdfsdk/fpdfview.cpp
+++ fpdfsdk/fpdfview.cpp
@@ -36,6 +36,7 @@
#include "fpdfsdk/cpdfsdk_pageview.h"
#include "fpdfsdk/fsdk_define.h"
#include "fpdfsdk/fsdk_pauseadapter.h"
+#include "fxjs/cfxjs_engine.h"
#include "fxjs/ijs_runtime.h"
#include "public/fpdf_edit.h"
#include "public/fpdf_ext.h"
@@ -495,6 +496,7 @@ FPDF_EXPORT void FPDF_CALLCONV FPDF_DestroyLibrary() {
CPDF_ModuleMgr::Destroy();
CFX_GEModule::Destroy();
+ FXJS_Release();
IJS_Runtime::Destroy();