Index: fpdfsdk/javascript/global.cpp |
diff --git a/fpdfsdk/javascript/global.cpp b/fpdfsdk/javascript/global.cpp |
index 32498e474c29b1d83a29ca81fcea297f629e711d..c3fc548a7333a657dc036a4e204924dfd5b4737f 100644 |
--- a/fpdfsdk/javascript/global.cpp |
+++ b/fpdfsdk/javascript/global.cpp |
@@ -93,6 +93,18 @@ void CJS_Global::InitInstance(IJS_Runtime* pIRuntime) { |
pGlobal->Initial(pRuntime->GetReaderApp()); |
} |
+JSGlobalData::JSGlobalData() |
+ : nType(0), |
+ dData(0), |
+ bData(FALSE), |
+ sData(""), |
+ bPersistent(FALSE), |
+ bDeleted(FALSE) {} |
+ |
+JSGlobalData::~JSGlobalData() { |
+ pData.Reset(); |
+} |
+ |
JSGlobalAlternate::JSGlobalAlternate(CJS_Object* pJSObject) |
: CJS_EmbedObj(pJSObject), m_pApp(nullptr) {} |