From 4d97bc0fbf18fd15b2a158e57dbb2855b0e0e409 Mon Sep 17 00:00:00 2001 From: yaochaonan Date: Mon, 23 Jun 2025 17:13:43 +0800 Subject: [PATCH] Fix pandafile and secureBuffer lifeCycle issue Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/ICH5YM?from=project-issue Signed-off-by: yaochaonan Change-Id: I7e4b39d0c33b09bfc6da7f0e0b532f142d5ddcc3 --- frameworks/native/runtime/ohos_js_environment_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/native/runtime/ohos_js_environment_impl.cpp b/frameworks/native/runtime/ohos_js_environment_impl.cpp index 6f77792c827..7cfd7b5df9f 100644 --- a/frameworks/native/runtime/ohos_js_environment_impl.cpp +++ b/frameworks/native/runtime/ohos_js_environment_impl.cpp @@ -179,7 +179,7 @@ void OHOSJsEnvironmentImpl::InitWorkerModule(NativeEngine* engine, std::shared_p CHECK_POINTER(workerInfo); engine->SetInitWorkerFunc(InitWorkerFunc); engine->SetOffWorkerFunc(OffWorkerFunc); - engine->SetReleaseWorkerSafeMemFunc(ReleaseWorkerSafeMemFunc); + panda::JSNApi::SetReleaseSecureMemCallback(const_cast(engine->GetEcmaVm()), ReleaseWorkerSafeMemFunc); engine->SetGetAssetFunc(AssetHelper(workerInfo)); engine->SetApiVersion(static_cast(workerInfo->apiTargetVersion.GetOriginPointer())); -- Gitee