diff --git a/include/grpc++/impl/codegen/call.h b/include/grpc++/impl/codegen/call.h index d342a3a25a9..c0753882661 100644 --- a/include/grpc++/impl/codegen/call.h +++ b/include/grpc++/impl/codegen/call.h @@ -544,7 +544,7 @@ class CallOpSet : public CallOpSetInterface, this->Op5::FinishOp(status, max_message_size_); this->Op6::FinishOp(status, max_message_size_); *tag = return_tag_; - SetCollection(nullptr); // drop the ref at this point + collection_.reset(); // drop the ref at this point return true; }