diff options
Diffstat (limited to 'fpdfsdk/src')
-rw-r--r-- | fpdfsdk/src/javascript/JS_Object.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/src/javascript/JS_Object.cpp b/fpdfsdk/src/javascript/JS_Object.cpp index eb089ed563..ef9bab971d 100644 --- a/fpdfsdk/src/javascript/JS_Object.cpp +++ b/fpdfsdk/src/javascript/JS_Object.cpp @@ -10,10 +10,10 @@ #include "../../include/javascript/JS_Object.h" #include "../../include/javascript/JS_Context.h" -JS_TIMER_MAPARRAY& GetTimeMap() { +JSTimerMap* GetGlobalTimerMap() { // Leak the timer array at shutdown. - static auto* timeMap = new JS_TIMER_MAPARRAY; - return *timeMap; + static auto* timeMap = new JSTimerMap; + return timeMap; } int FXJS_MsgBox(CPDFDoc_Environment* pApp, |