Index: fpdfsdk/src/javascript/JS_Context.cpp |
diff --git a/fpdfsdk/src/javascript/JS_Context.cpp b/fpdfsdk/src/javascript/JS_Context.cpp |
index f41cf9ec13f1f85d61af1708e5ed898ef1a6c569..e7896574693fbf0bb842fc42138632b507380bdf 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() |