From 177edfa47d330f2804ce8b800bdfec2e7c9faa22 Mon Sep 17 00:00:00 2001 From: zhang_hao_zheng Date: Tue, 10 Feb 2026 10:19:37 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E6=9B=B4=E6=96=B0=E6=96=87=E4=BB=B6?= =?UTF-8?q?=20ets=5Fcontext=5Fmodule.cpp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhang_hao_zheng --- frameworks/ets/ani/app/context/src/ets_context_module.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/frameworks/ets/ani/app/context/src/ets_context_module.cpp b/frameworks/ets/ani/app/context/src/ets_context_module.cpp index 55154d7642..0640dc47d7 100644 --- a/frameworks/ets/ani/app/context/src/ets_context_module.cpp +++ b/frameworks/ets/ani/app/context/src/ets_context_module.cpp @@ -411,6 +411,7 @@ void EtsContextModule::SaveStaticBindingObject(ani_env *aniEnv, ani_object input ani_status status = ANI_ERROR; if ((status = aniEnv->GlobalReference_Create(input, contextGlobalRef)) != ANI_OK) { TAG_LOGE(AAFwkTag::UIABILITY, "status : %{public}d", status); + delete contextGlobalRef; return; } context->Bind(contextGlobalRef);