mirror of
https://github.com/openharmony/developtools_syscap_codec.git
synced 2026-08-27 02:11:19 -04:00
修改napi/napi_query_syscap.cpp文件226行,删去asyncContext对象,消除告警
删去asyncContext对象,消除告警 Signed-off-by: tongkai0808fh <tongkai5@huawei.com>
This commit is contained in:
@@ -223,6 +223,7 @@ napi_value QuerySystemCapability(napi_env env, napi_callback_info info)
|
||||
},
|
||||
(void*)asyncContext, &asyncContext->work);
|
||||
napi_queue_async_work(env, asyncContext->work);
|
||||
delete asyncContext;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user