Index: fpdfsdk/src/javascript/JS_Context.cpp |
diff --git a/fpdfsdk/src/javascript/JS_Context.cpp b/fpdfsdk/src/javascript/JS_Context.cpp |
index 924ab1ee19c9ea83895768b0eef0dcd031131b1a..72be34d751354409e5b0d4a3d4c407776e7eecae 100644 |
--- a/fpdfsdk/src/javascript/JS_Context.cpp |
+++ b/fpdfsdk/src/javascript/JS_Context.cpp |
@@ -24,11 +24,7 @@ CJS_Context::CJS_Context(CJS_Runtime* pRuntime) : |
CJS_Context::~CJS_Context(void) |
{ |
- if (m_pEventHandler) |
- { |
- delete m_pEventHandler; |
- m_pEventHandler = NULL; |
- } |
+ delete m_pEventHandler; |
} |
CPDFSDK_Document* CJS_Context::GetReaderDocument() |