diff --git a/frameworks/src/app_group_observer_napi.cpp b/frameworks/src/app_group_observer_napi.cpp index 97a0f23ea5f209dd436686bcfce58147787de05b..01ad3995388bb538cf973eb4a37396c336cd47e4 100644 --- a/frameworks/src/app_group_observer_napi.cpp +++ b/frameworks/src/app_group_observer_napi.cpp @@ -93,8 +93,6 @@ void UvQueueWorkOnAppGroupChanged(uv_work_t *work, int status) napi_handle_scope scope = nullptr; napi_open_handle_scope(callbackReceiveDataWorkerData->env, &scope); if (scope == nullptr) { - delete work; - work = nullptr; return; }