Index: fpdfsdk/src/fpdfxfa/fpdfxfa_app.cpp |
diff --git a/fpdfsdk/src/fpdfxfa/fpdfxfa_app.cpp b/fpdfsdk/src/fpdfxfa/fpdfxfa_app.cpp |
index 255d2bb02498b9567ef653f8b595b3702d2bd684..fed3f32318751e5f52ababe8304e06386b7218ab 100644 |
--- a/fpdfsdk/src/fpdfxfa/fpdfxfa_app.cpp |
+++ b/fpdfsdk/src/fpdfxfa/fpdfxfa_app.cpp |
@@ -43,14 +43,17 @@ CPDFXFA_App::~CPDFXFA_App() { |
delete m_pXFAApp; |
m_pXFAApp = NULL; |
+#ifdef PDF_ENABLE_XFA |
FXJSE_Runtime_Release(m_hJSERuntime); |
m_hJSERuntime = NULL; |
FXJSE_Finalize(); |
BC_Library_Destory(); |
+#endif |
} |
FX_BOOL CPDFXFA_App::Initialize() { |
+#ifdef PDF_ENABLE_XFA |
BC_Library_Init(); |
FXJSE_Initialize(); |
@@ -67,6 +70,7 @@ FX_BOOL CPDFXFA_App::Initialize() { |
return FALSE; |
m_pXFAApp->SetDefaultFontMgr(m_pFontMgr); |
+#endif |
return TRUE; |
} |