cef/patch/patches/pdfium_print_549365.patch

36 lines
895 B
Diff

diff --git BUILD.gn BUILD.gn
index 4a05c56..5e1c4e8 100644
--- BUILD.gn
+++ BUILD.gn
@@ -194,6 +194,10 @@ static_library("pdfium") {
} else {
libs += [ "freetype" ]
}
+
+ include_dirs = [
+ "//v8/include",
+ ]
}
static_library("test_support") {
diff --git fpdfsdk/fpdfview.cpp fpdfsdk/fpdfview.cpp
index ff4d46e..5d4c419 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"
@@ -383,6 +384,7 @@ DLLEXPORT void STDCALL FPDF_DestroyLibrary() {
CPDF_ModuleMgr::Destroy();
CFX_GEModule::Destroy();
+ FXJS_Release();
delete g_pCodecModule;
g_pCodecModule = nullptr;