summaryrefslogtreecommitdiff
path: root/ace/Stream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ace/Stream.cpp')
-rw-r--r--ace/Stream.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/ace/Stream.cpp b/ace/Stream.cpp
index 92b8e423bca..cb58abe60d7 100644
--- a/ace/Stream.cpp
+++ b/ace/Stream.cpp
@@ -263,7 +263,9 @@ ACE_Stream<ACE_SYNCH_2>::open (void *a,
{
h1 = new ACE_Stream_Head<ACE_SYNCH_2>;
h2 = new ACE_Stream_Head<ACE_SYNCH_2>;
- head = new ACE_Module<ACE_SYNCH_2> ("ACE_Stream_Head", h1, h2, a);
+ head = new ACE_Module<ACE_SYNCH_2> ("ACE_Stream_Head",
+ h1, h2,
+ a | M_DELETE);
}
if (tail == 0)
@@ -271,7 +273,8 @@ ACE_Stream<ACE_SYNCH_2>::open (void *a,
t1 = new ACE_Stream_Tail<ACE_SYNCH_2>;
t2 = new ACE_Stream_Tail<ACE_SYNCH_2>;
tail = new ACE_Module<ACE_SYNCH_2> ("ACE_Stream_Tail",
- t1, t2, a);
+ t1, t2,
+ a | M_DELETE);
}
// Make sure *all* the allocation succeeded!