diff options
author | yang-g <yangg@google.com> | 2017-07-10 11:24:53 -0700 |
---|---|---|
committer | yang-g <yangg@google.com> | 2017-07-10 11:24:53 -0700 |
commit | 0d9caecde2fe36ed86b26f04fb985a250beba3f3 (patch) | |
tree | 2d4291661903335bebe9808066073745ae78dcc4 /include | |
parent | 33f54afb33ddd4b72be02d6f120fdb46c5a48738 (diff) |
Unref the call first in case the collection is still used in call
Diffstat (limited to 'include')
-rw-r--r-- | include/grpc++/impl/codegen/call.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/grpc++/impl/codegen/call.h b/include/grpc++/impl/codegen/call.h index 342ea46203..a40939f4d6 100644 --- a/include/grpc++/impl/codegen/call.h +++ b/include/grpc++/impl/codegen/call.h @@ -611,11 +611,12 @@ class CallOpSet : public CallOpSetInterface, this->Op6::FinishOp(status); *tag = return_tag_; + g_core_codegen_interface->grpc_call_unref(call_); + // TODO(vjpai): Remove the reference to collection_ once the idea of // bypassing the code generator is forbidden. It is already deprecated collection_.reset(); - g_core_codegen_interface->grpc_call_unref(call_); return true; } |