summaryrefslogtreecommitdiff
path: root/ace/Task_T.i
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1996-12-17 16:35:06 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1996-12-17 16:35:06 +0000
commit0d7a4c90918697451fc1cd7ebb39102aa162b0f5 (patch)
treef8543faeadf492ba2fec99ef62e289382d9f97ea /ace/Task_T.i
parentff8c24a33730abc4e8703aab66a17c3d333541af (diff)
downloadATCD-0d7a4c90918697451fc1cd7ebb39102aa162b0f5.tar.gz
foo
Diffstat (limited to 'ace/Task_T.i')
-rw-r--r--ace/Task_T.i5
1 files changed, 5 insertions, 0 deletions
diff --git a/ace/Task_T.i b/ace/Task_T.i
index 9f5ba06054e..1a8837f24a3 100644
--- a/ace/Task_T.i
+++ b/ace/Task_T.i
@@ -57,6 +57,11 @@ template <ACE_SYNCH_1> ACE_INLINE void
ACE_Task<ACE_SYNCH_2>::msg_queue (ACE_Message_Queue<ACE_SYNCH_2> *mq)
{
ACE_TRACE ("ACE_Task<ACE_SYNCH_2>::msg_queue");
+ if (this->delete_msg_queue_)
+ {
+ delete this->msg_queue_;
+ this->delete_msg_queue_ = 0;
+ }
this->msg_queue_ = mq;
}