Release write buffer in FinalizeResult

pull/501/head
Yang Gao 10 years ago
parent 7de8b49ca0
commit 6d6b90376b
  1. 3
      include/grpc++/impl/call.h
  2. 7
      src/cpp/common/call.cc

@ -73,9 +73,6 @@ class CallOpBuffer final : public CompletionQueueTag {
// Convert to an array of grpc_op elements
void FillOps(grpc_op *ops, size_t *nops);
// Release send buffers.
void ReleaseSendBuffer();
// Called by completion queue just prior to returning from Next() or Pluck()
void FinalizeResult(void *tag, bool *status) override;

@ -144,17 +144,14 @@ void CallOpBuffer::FillOps(grpc_op *ops, size_t *nops) {
}
}
void CallOpBuffer::ReleaseSendBuffer() {
void CallOpBuffer::FinalizeResult(void *tag, bool *status) {
// Release send buffers
if (write_buffer_) {
grpc_byte_buffer_destroy(write_buffer_);
write_buffer_ = nullptr;
}
}
void CallOpBuffer::FinalizeResult(void *tag, bool *status) {
}
void CCallDeleter::operator()(grpc_call* c) {
grpc_call_destroy(c);
}

Loading…
Cancel
Save