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

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

fix mem leak
Signed-off-by: N马根堂 <magentang4@huawei.com>
上级 602cb183
......@@ -31,7 +31,7 @@ NAPIRemoteObjectHolder::NAPIRemoteObjectHolder(napi_env env, const std::u16strin
sptrCachedObject_ = nullptr;
wptrCachedObject_ = nullptr;
localInterfaceRef_ = nullptr;
jsObjectRef_ = nullptr;
jsObjectRef_ = nullptr;
attachCount_ = 1;
napi_create_reference(env, thisVar, 0, &jsObjectRef_);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册