!78 修改内源issue

Merge pull request !78 from 小马奔腾/master
This commit is contained in:
openharmony_ci
2022-03-21 08:32:07 +00:00
committed by Gitee
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -101,6 +101,7 @@ namespace OHOS::Js_sys_module::Process {
OptionsInfo* optionsInfo = reinterpret_cast<OptionsInfo*>(data);
napi_delete_async_work(env, optionsInfo->worker);
delete optionsInfo;
optionsInfo = nullptr;
},
reinterpret_cast<void*>(optionsInfo_), &optionsInfo_->worker);
napi_queue_async_work(env_, optionsInfo_->worker);
@@ -267,6 +268,7 @@ namespace OHOS::Js_sys_module::Process {
auto stdOutInfo = reinterpret_cast<StdInfo*>(buffer);
napi_delete_async_work(env, stdOutInfo->worker);
delete stdOutInfo;
stdOutInfo = nullptr;
}
void ChildProcess::ReadStdErr(napi_env env, void* data)
@@ -301,6 +303,7 @@ namespace OHOS::Js_sys_module::Process {
auto stdErrInfo = reinterpret_cast<StdInfo*>(buffer);
napi_delete_async_work(env, stdErrInfo->worker);
delete stdErrInfo;
stdErrInfo = nullptr;
}
int ChildProcess::GetValidSignal(const napi_value signo)
+1
View File
@@ -97,6 +97,7 @@ namespace OHOS::Js_sys_module::Process {
auto objectInfo = (ChildProcess*)data;
if (objectInfo != nullptr) {
delete objectInfo;
objectInfo = nullptr;
}
},
nullptr, nullptr));