Skip to content
Snippets Groups Projects
Commit 10c040d4 authored by Vijay Pai's avatar Vijay Pai
Browse files

Move collection reset before unref (since unref could destroy obj)

parent d35730d1
Branches
Tags
No related merge requests found
......@@ -610,10 +610,12 @@ class CallOpSet : public CallOpSetInterface,
this->Op5::FinishOp(status);
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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment