diff options
author | Sree Kuchibhotla <sreek@google.com> | 2018-07-11 18:46:29 -0700 |
---|---|---|
committer | Sree Kuchibhotla <sreek@google.com> | 2018-07-11 18:46:29 -0700 |
commit | 37e4990be3fd97f7776d6bed75a54055cae71403 (patch) | |
tree | 07ed40897e52d958ad440f2715b8ecd1c7661c22 /src | |
parent | 8aefdd3653818e7dd9e12249dd9af9c048b3de2a (diff) |
replace new/delete with grpc_core::New and grpc_core::Delete
Diffstat (limited to 'src')
-rw-r--r-- | src/core/lib/iomgr/executor.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/lib/iomgr/executor.cc b/src/core/lib/iomgr/executor.cc index 2aadb035bf..aeba050a99 100644 --- a/src/core/lib/iomgr/executor.cc +++ b/src/core/lib/iomgr/executor.cc @@ -30,6 +30,7 @@ #include "src/core/lib/debug/stats.h" #include "src/core/lib/gpr/tls.h" #include "src/core/lib/gpr/useful.h" +#include "src/core/lib/gprpp/memory.h" #include "src/core/lib/iomgr/exec_ctx.h" #define MAX_DEPTH 2 @@ -321,13 +322,13 @@ static grpc_closure_scheduler global_scheduler_long = { void grpc_executor_init() { GPR_ASSERT(global_executor == nullptr); - global_executor = new GrpcExecutor("global-executor"); + global_executor = grpc_core::New<GrpcExecutor>("global-executor"); global_executor->Init(); } void grpc_executor_shutdown() { global_executor->Shutdown(); - delete global_executor; + grpc_core::Delete<GrpcExecutor>(global_executor); global_executor = nullptr; } |