2016-07-21 23:21:32 +02:00
|
|
|
diff --git BUILD.gn BUILD.gn
|
2017-01-23 18:36:54 +01:00
|
|
|
index 4a05c56..5e1c4e8 100644
|
2016-07-21 23:21:32 +02:00
|
|
|
--- BUILD.gn
|
|
|
|
+++ BUILD.gn
|
2017-01-23 18:36:54 +01:00
|
|
|
@@ -194,6 +194,10 @@ static_library("pdfium") {
|
2016-07-21 23:21:32 +02:00
|
|
|
} else {
|
|
|
|
libs += [ "freetype" ]
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ include_dirs = [
|
|
|
|
+ "//v8/include",
|
|
|
|
+ ]
|
|
|
|
}
|
|
|
|
|
2016-08-31 13:25:56 +02:00
|
|
|
static_library("test_support") {
|
2016-03-16 03:55:59 +01:00
|
|
|
diff --git fpdfsdk/fpdfview.cpp fpdfsdk/fpdfview.cpp
|
2017-01-23 18:36:54 +01:00
|
|
|
index ff4d46e..5d4c419 100644
|
2016-03-16 03:55:59 +01:00
|
|
|
--- fpdfsdk/fpdfview.cpp
|
|
|
|
+++ fpdfsdk/fpdfview.cpp
|
2016-11-23 21:54:29 +01:00
|
|
|
@@ -31,6 +31,7 @@
|
2016-10-21 21:52:29 +02:00
|
|
|
#include "fpdfsdk/fsdk_define.h"
|
|
|
|
#include "fpdfsdk/fsdk_pauseadapter.h"
|
2016-04-27 22:38:52 +02:00
|
|
|
#include "fpdfsdk/javascript/ijs_runtime.h"
|
2016-10-21 21:52:29 +02:00
|
|
|
+#include "fxjs/fxjs_v8.h"
|
2015-12-09 17:10:16 +01:00
|
|
|
#include "public/fpdf_ext.h"
|
|
|
|
#include "public/fpdf_progressive.h"
|
2016-05-25 01:35:43 +02:00
|
|
|
#include "third_party/base/numerics/safe_conversions_impl.h"
|
2017-01-23 18:36:54 +01:00
|
|
|
@@ -383,6 +384,7 @@ DLLEXPORT void STDCALL 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();
|
|
|
|
|
|
|
|
delete g_pCodecModule;
|
|
|
|
g_pCodecModule = nullptr;
|