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

mem leak

Signed-off-by: N马根堂 <magentang4@huawei.com>
上级 fbe4bd86
......@@ -36,7 +36,7 @@ public:
int OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) override;
napi_value GetJsObject() const;
napi_ref GetJsObjectRef() const;
private:
napi_env env_ = nullptr;
napi_value thisVar_ = nullptr;
......
......@@ -188,12 +188,17 @@ int NAPIRemoteObject::GetObjectType() const
return OBJECT_TYPE_JAVASCRIPT;
}
napi_ref NAPIRemoteObject::GetJsObjectRef() const
{
return thisVarRef_;
}
/*
napi_value NAPIRemoteObject::GetJsObject() const
{
napi_value ret = nullptr;
napi_get_reference_value(env_, thisVarRef_, &ret);
return ret;
}
}*/
void NAPI_RemoteObject_getCallingInfo(CallingInfo &newCallingInfoParam)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册