diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-01-04 00:06:38 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-01-04 00:06:38 +0000 |
commit | 70d108545611dbb86049d0109ef4a7ab1ef6289e (patch) | |
tree | 790c9b07d5eac35a82ae7d9f5e7b59a6243a4b2c /ace/UPIPE_Stream.cpp | |
parent | 1c44106287219a05ddbff09df4574b90777040ae (diff) | |
download | ATCD-70d108545611dbb86049d0109ef4a7ab1ef6289e.tar.gz |
foo
Diffstat (limited to 'ace/UPIPE_Stream.cpp')
-rw-r--r-- | ace/UPIPE_Stream.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/ace/UPIPE_Stream.cpp b/ace/UPIPE_Stream.cpp index b5fba065f27..b68183f06f2 100644 --- a/ace/UPIPE_Stream.cpp +++ b/ace/UPIPE_Stream.cpp @@ -120,8 +120,7 @@ ACE_UPIPE_Stream::recv (char *buffer, this->remaining_); bytes_read += this->remaining_; this->remaining_ = 0; - delete this->mb_last_; - this->mb_last_ = 0; + this->mb_last_ = this->mb_last_->release (); return bytes_read; } else @@ -139,12 +138,9 @@ ACE_UPIPE_Stream::recv (char *buffer, this->remaining_ -= n; if (this->remaining_ == 0) - { - // Now the Message_Buffer is empty. + // Now the Message_Buffer is empty. - delete this->mb_last_; - this->mb_last_ = 0; - } + this->mb_last_ = this->mb_last_->release (); } } else |