2016-07-21 23:21:32 +02:00
|
|
|
diff --git BUILD.gn BUILD.gn
|
2018-05-17 10:58:21 +02:00
|
|
|
index 8107454ec..4792aca8e 100644
|
2016-07-21 23:21:32 +02:00
|
|
|
--- BUILD.gn
|
|
|
|
+++ BUILD.gn
|
2018-05-14 13:24:05 +02:00
|
|
|
@@ -241,6 +241,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-05-14 13:24:05 +02:00
|
|
|
index d21448bc5..5df0cfeb4 100644
|
2018-04-19 17:44:42 +02:00
|
|
|
--- fpdfsdk/fpdf_view.cpp
|
|
|
|
+++ fpdfsdk/fpdf_view.cpp
|
2017-12-07 22:44:24 +01:00
|
|
|
@@ -36,6 +36,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"
|
|
|
|
@@ -186,6 +187,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();
|
|
|
|
|