From f38ee77d783896204fe083eada37488999674278 Mon Sep 17 00:00:00 2001 From: l30059571 Date: Thu, 13 Mar 2025 10:27:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9C=8B=E6=9D=BF=E5=91=8A=E8=AD=A6=E6=B8=85?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: l30059571 --- frameworks/src/app_group_observer_napi.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frameworks/src/app_group_observer_napi.cpp b/frameworks/src/app_group_observer_napi.cpp index 42ec9a8..a722582 100644 --- a/frameworks/src/app_group_observer_napi.cpp +++ b/frameworks/src/app_group_observer_napi.cpp @@ -131,7 +131,6 @@ void UvQueueWorkOnAppGroupChanged(uv_work_t *work) */ ErrCode AppGroupObserver::OnAppGroupChanged(const AppGroupCallbackInfo &appGroupCallbackInfo) { - BUNDLE_ACTIVE_LOGD("OnAppGroupChanged start"); uv_loop_s *loop = nullptr; napi_get_uv_event_loop(bundleGroupCallbackInfo_.env, &loop); if (!loop) { @@ -151,9 +150,11 @@ ErrCode AppGroupObserver::OnAppGroupChanged(const AppGroupCallbackInfo &appGroup return ERR_OK; } MessageParcel data; - if (!appGroupCallbackInfo.Marshalling(data)) {} + appGroupCallbackInfo.Marshalling(data); AppGroupCallbackInfo* callBackInfo = appGroupCallbackInfo.Unmarshalling(data); if (callBackInfo == nullptr) { + delete callbackReceiveDataWorker; + callbackReceiveDataWorker = nullptr; delete work; work = nullptr; return ERR_OK; -- Gitee