低级稳定性问题处理

Signed-off-by: b30058220 <baodi1@huawei.com>
Change-Id: I7cccea37ad17a06edcaa688d5f16ce46623bed55
This commit is contained in:
b30058220 2024-08-26 14:14:03 +00:00
parent e7cb4413a3
commit fa0dbb98cb

View File

@ -1547,6 +1547,8 @@ static napi_value JSExecuteDrag(napi_env env, napi_callback_info info)
if (!CheckAndParseParams(dragAsyncContext, errMsg)) {
NapiThrow(env, errMsg, ERROR_CODE_PARAM_INVALID);
napi_close_escapable_handle_scope(env, scope);
delete dragAsyncContext;
dragAsyncContext = nullptr;
return nullptr;
}
napi_value result = nullptr;