cef/patch/patches/pdfium_print_549365.patch

36 lines
895 B
Diff

diff --git BUILD.gn BUILD.gn
index f91ea0e..b57c692 100644
--- BUILD.gn
+++ BUILD.gn
@@ -183,6 +183,10 @@ static_library("pdfium") {
} else {
libs += [ "freetype" ]
}
+
+ include_dirs = [
+ "//v8/include",
+ ]
}
static_library("test_support") {
diff --git fpdfsdk/fpdfview.cpp fpdfsdk/fpdfview.cpp
index 334c14c..fd918f3 100644
--- fpdfsdk/fpdfview.cpp
+++ fpdfsdk/fpdfview.cpp
@@ -31,6 +31,7 @@
#include "fpdfsdk/fsdk_define.h"
#include "fpdfsdk/fsdk_pauseadapter.h"
#include "fpdfsdk/javascript/ijs_runtime.h"
+#include "fxjs/fxjs_v8.h"
#include "public/fpdf_ext.h"
#include "public/fpdf_progressive.h"
#include "third_party/base/numerics/safe_conversions_impl.h"
@@ -263,6 +264,7 @@ DLLEXPORT void STDCALL FPDF_DestroyLibrary() {
CPDF_ModuleMgr::Destroy();
CFX_GEModule::Destroy();
+ FXJS_Release();
delete g_pCodecModule;
g_pCodecModule = nullptr;