未验证 提交 f6031f52 编写于 作者: 马根堂 提交者: Gitee

update ipc/native/src/napi_common/source/napi_remote_object.cpp.

fix mem leak
Signed-off-by: N马根堂 <magentang4@huawei.com>
上级 b4f0540a
......@@ -100,7 +100,7 @@ static void RemoteObjectHolderRefCb(napi_env env, void *data, void *hint)
napi_ref ref = holder->GetJsObjectRef();
napi_env workerEnv = holder->GetJsObjectEnv();
if (ref == nullptr || workerEnv == nullptr) {
ZLOGE(LOG_LABEL, "ref or env is null");
ZLOGE(LOG_LABEL, "ref or env is nullptr");
return;
}
uv_loop_s *loop = nullptr;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册