2016-07-21 23:21:32 +02:00
|
|
|
diff --git BUILD.gn BUILD.gn
|
2018-06-19 00:08:20 +02:00
|
|
|
index 132f3c28e..4726a808c 100644
|
2016-07-21 23:21:32 +02:00
|
|
|
--- BUILD.gn
|
|
|
|
+++ BUILD.gn
|
2018-06-08 18:53:10 +02:00
|
|
|
@@ -248,6 +248,10 @@ jumbo_static_library("pdfium") {
|
2017-04-20 21:28:17 +02:00
|
|
|
complete_static_lib = true
|
2018-04-19 17:44:42 +02:00
|
|
|
configs -= [ "//build/config/compiler:thin_archive" ]
|
2016-07-21 23:21:32 +02:00
|
|
|
}
|
|
|
|
+
|
|
|
|
+ include_dirs = [
|
|
|
|
+ "//v8/include",
|
|
|
|
+ ]
|
|
|
|
}
|
|
|
|
|
2018-02-15 01:12:09 +01:00
|
|
|
jumbo_static_library("test_support") {
|
2018-04-19 17:44:42 +02:00
|
|
|
diff --git fpdfsdk/fpdf_view.cpp fpdfsdk/fpdf_view.cpp
|
2018-06-19 00:08:20 +02:00
|
|
|
index 0e76548ab..cb89a1a4c 100644
|
2018-04-19 17:44:42 +02:00
|
|
|
--- fpdfsdk/fpdf_view.cpp
|
|
|
|
+++ fpdfsdk/fpdf_view.cpp
|
2018-06-08 18:53:10 +02:00
|
|
|
@@ -38,6 +38,7 @@
|
2018-04-19 17:44:42 +02:00
|
|
|
#include "fpdfsdk/cpdfsdk_memoryaccess.h"
|
2017-12-07 22:44:24 +01:00
|
|
|
#include "fpdfsdk/cpdfsdk_pageview.h"
|
2018-04-19 17:44:42 +02:00
|
|
|
#include "fpdfsdk/ipdfsdk_pauseadapter.h"
|
2018-03-20 21:15:08 +01:00
|
|
|
+#include "fxjs/cfxjs_engine.h"
|
2017-12-07 22:44:24 +01:00
|
|
|
#include "fxjs/ijs_runtime.h"
|
2018-04-19 17:44:42 +02:00
|
|
|
#include "public/fpdf_formfill.h"
|
|
|
|
#include "third_party/base/ptr_util.h"
|
2018-06-08 18:53:10 +02:00
|
|
|
@@ -198,6 +199,7 @@ FPDF_EXPORT void FPDF_CALLCONV FPDF_DestroyLibrary() {
|
2016-11-23 21:54:29 +01:00
|
|
|
|
2015-11-10 21:18:16 +01:00
|
|
|
CPDF_ModuleMgr::Destroy();
|
|
|
|
CFX_GEModule::Destroy();
|
|
|
|
+ FXJS_Release();
|
|
|
|
|
2017-05-31 17:33:30 +02:00
|
|
|
IJS_Runtime::Destroy();
|
|
|
|
|