diff options
author | alex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-27 01:58:29 +0000 |
---|---|---|
committer | alex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-27 01:58:29 +0000 |
commit | 6b39cbefe0dac6ff7a4be05ec933a67d3d14467a (patch) | |
tree | 166f3642cc3d00a509cf5404c4a65d88618f3294 /ace/WIN32_Asynch_IO.cpp | |
parent | 8cce16c88c7b767b9072c12b7f1ab6bf02861d86 (diff) | |
download | ATCD-6b39cbefe0dac6ff7a4be05ec933a67d3d14467a.tar.gz |
Fixed the double deletion problem of the result classes. Thanks to
"Nesbitt, Bill" <bnesbitt@magellan.com> for reporting this.
Diffstat (limited to 'ace/WIN32_Asynch_IO.cpp')
-rw-r--r-- | ace/WIN32_Asynch_IO.cpp | 48 |
1 files changed, 21 insertions, 27 deletions
diff --git a/ace/WIN32_Asynch_IO.cpp b/ace/WIN32_Asynch_IO.cpp index d96db3d62c9..079c0df7fc6 100644 --- a/ace/WIN32_Asynch_IO.cpp +++ b/ace/WIN32_Asynch_IO.cpp @@ -393,9 +393,6 @@ ACE_WIN32_Asynch_Read_Stream::shared_read (ACE_WIN32_Asynch_Read_Stream_Result * // Something else went wrong: the OVERLAPPED will not get // queued. - // Cleanup dynamically allocated Asynch_Result - delete result; - if (ACE::debug ()) { ACE_DEBUG ((LM_ERROR, @@ -413,14 +410,14 @@ ACE_WIN32_Asynch_Read_Stream::shared_read (ACE_WIN32_Asynch_Read_Stream_Result * int ACE_WIN32_Asynch_Read_Stream::open (ACE_Handler &handler, - ACE_HANDLE handle, - const void *completion_key, - ACE_Proactor *proactor) + ACE_HANDLE handle, + const void *completion_key, + ACE_Proactor *proactor) { return ACE_WIN32_Asynch_Operation::open (handler, - handle, - completion_key, - proactor); + handle, + completion_key, + proactor); } int @@ -633,9 +630,6 @@ ACE_WIN32_Asynch_Write_Stream::shared_write (ACE_WIN32_Asynch_Write_Stream_Resul // Something else went wrong: the OVERLAPPED will not get // queued. - // Cleanup dynamically allocated Asynch_Result - delete result; - if (ACE::debug ()) { ACE_DEBUG ((LM_ERROR, @@ -657,9 +651,9 @@ ACE_WIN32_Asynch_Write_Stream::open (ACE_Handler &handler, ACE_Proactor *proactor) { return ACE_WIN32_Asynch_Operation::open (handler, - handle, - completion_key, - proactor); + handle, + completion_key, + proactor); } int @@ -891,9 +885,9 @@ ACE_WIN32_Asynch_Read_File::open (ACE_Handler &handler, ACE_Proactor *proactor) { return ACE_WIN32_Asynch_Operation::open (handler, - handle, - completion_key, - proactor); + handle, + completion_key, + proactor); } int @@ -1122,9 +1116,9 @@ ACE_WIN32_Asynch_Write_File::open (ACE_Handler &handler, ACE_Proactor *proactor) { return ACE_WIN32_Asynch_Operation::open (handler, - handle, - completion_key, - proactor); + handle, + completion_key, + proactor); } int @@ -1404,9 +1398,9 @@ ACE_WIN32_Asynch_Accept::open (ACE_Handler &handler, ACE_Proactor *proactor) { return ACE_WIN32_Asynch_Operation::open (handler, - handle, - completion_key, - proactor); + handle, + completion_key, + proactor); } int @@ -1687,9 +1681,9 @@ ACE_WIN32_Asynch_Transmit_File::open (ACE_Handler &handler, ACE_Proactor *proactor) { return ACE_WIN32_Asynch_Operation::open (handler, - handle, - completion_key, - proactor); + handle, + completion_key, + proactor); } int |