fix memory leak

Signed-off-by: wangben <wangben15@huawei.com>
This commit is contained in:
wangben
2022-03-12 16:35:19 +08:00
parent bef8210c0e
commit 484cdd1b74
+2
View File
@@ -36,6 +36,8 @@ namespace OHOS::Js_sys_module::Process {
namespace {
constexpr int NUM_OF_DATA = 4;
constexpr int PER_USER_RANGE = 100000;
constexpr int32_t NAPI_RETURN_ZERO = 0;
constexpr int32_t NAPI_RETURN_ONE = 1;
}
thread_local std::multimap<std::string, napi_ref> eventMap;
thread_local std::map<napi_ref, napi_ref> pendingUnHandledRejections;