提交 3b956908 编写于 作者: O openharmony_ci 提交者: Gitee

!37 【轻量级 PR】:fix memory double free when reclaim message parcel

Merge pull request !37 from liangshenglin1/N/A
......@@ -1954,8 +1954,6 @@ napi_value NAPI_MessageParcel::JS_constructor(napi_env env, napi_callback_info i
status = napi_wrap(
env, thisVar, messageParcel,
[](napi_env env, void *data, void *hint) {
DBINDER_LOGI("NAPI_MessageParcel:%{public}p destructed by js callback", data);
delete (reinterpret_cast<NAPI_MessageParcel *>(data));
},
nullptr, nullptr);
NAPI_ASSERT(env, status == napi_ok, "napi wrap message parcel failed");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册