2016-07-21 23:21:32 +02:00
|
|
|
diff --git BUILD.gn BUILD.gn
|
2018-08-09 22:18:24 +02:00
|
|
|
index afa83e358..90e6473af 100644
|
2016-07-21 23:21:32 +02:00
|
|
|
--- BUILD.gn
|
|
|
|
+++ BUILD.gn
|
2018-07-06 19:11:55 +02:00
|
|
|
@@ -239,6 +239,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-07-31 21:21:39 +02:00
|
|
|
index c44d582fd..6debf1e38 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-07-02 19:11:49 +02:00
|
|
|
@@ -194,6 +195,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();
|
|
|
|
|