Index: fpdfsdk/javascript/JS_Runtime_Stub.cpp |
diff --git a/fpdfsdk/javascript/JS_Runtime_Stub.cpp b/fpdfsdk/javascript/JS_Runtime_Stub.cpp |
index 2c7eda8a7eb6b48198eb6aa63b72bee7c127d900..3b316aaf699dcfa411062af3f15402391dbc9742 100644 |
--- a/fpdfsdk/javascript/JS_Runtime_Stub.cpp |
+++ b/fpdfsdk/javascript/JS_Runtime_Stub.cpp |
@@ -124,7 +124,7 @@ class CJS_RuntimeStub final : public IJS_Runtime { |
IJS_Context* NewContext() override { |
if (!m_pContext) |
- m_pContext.reset(new CJS_ContextStub()); |
+ m_pContext = WrapUnique(new CJS_ContextStub()); |
return GetCurrentContext(); |
} |