diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-01-02 09:05:39 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-01-02 09:05:39 +0000 |
commit | 1c44106287219a05ddbff09df4574b90777040ae (patch) | |
tree | 1d371fe6828480e7cecdcb75a8887a2b4bb83f53 /ace/Message_Block.cpp | |
parent | fbcfcdb6ff9975a9e2152be0a5dc7e28a32635fc (diff) | |
download | ATCD-1c44106287219a05ddbff09df4574b90777040ae.tar.gz |
foo
Diffstat (limited to 'ace/Message_Block.cpp')
-rw-r--r-- | ace/Message_Block.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/ace/Message_Block.cpp b/ace/Message_Block.cpp index d58e13a8c03..df4dc918cc6 100644 --- a/ace/Message_Block.cpp +++ b/ace/Message_Block.cpp @@ -114,7 +114,7 @@ ACE_Message_Block::~ACE_Message_Block (void) delete [] this->base_; } if (this->cont_) - delete this->cont_; + this->cont_->release (); this->prev_ = 0; this->next_ = 0; } @@ -316,7 +316,16 @@ ACE_Message_Block::release (void) return result; } -ACE_INLINE ACE_Message_Block * +/* static */ ACE_Message_Block * +ACE_Message_Block::release (ACE_Message_Block *mb) +{ + if (mb) + return mb->release (); + else + return 0; +} + +ACE_Message_Block * ACE_Message_Block::duplicate (void) { ACE_TRACE ("ACE_Message_Block::duplicate"); |