Signed-off-by: caolili123 <caolili14@huawei.com>
This commit is contained in:
caolili123 2024-11-15 14:34:16 +08:00
parent bbe9d7f49c
commit 593755f728

View File

@ -101,10 +101,6 @@ napi_value CreateTaskObject(napi_env env, TaskType taskType = TaskType::TASK,
delete obj;
}
}, nullptr, nullptr) != napi_ok) {
if (args != nullptr) {
delete[] args;
args = nullptr;
}
delete task;
task = nullptr;
return nullptr;