diff options
-rw-r--r-- | ChangeLog-97a | 11 | ||||
-rw-r--r-- | ace/Log_Msg.cpp | 6 | ||||
-rw-r--r-- | ace/Log_Msg.h | 2 |
3 files changed, 18 insertions, 1 deletions
diff --git a/ChangeLog-97a b/ChangeLog-97a index 58f1548636e..5fb05d26605 100644 --- a/ChangeLog-97a +++ b/ChangeLog-97a @@ -1,3 +1,14 @@ +Fri Feb 7 01:13:05 1997 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu> + + * ace/OS.h: Fixed a minor typo where friend class ACE_rwlock_t + should be friend class ACE_OS. Thanks to Thilo Kielmann + <kielmann@informatik.uni-siegen.de> for reporting this. + + * ace/Log_Msg.cpp: Added a destructor to ACE_Log_Msg and changed + ACE_TSS_cleanup so that it calls delete (ACE_Log_Msg *) ptr. + Thanks to Per Anderson <Per.Andersson@hfera.ericsson.se> for + reporting this. + Fri Feb 07 05:08:51 1997 <irfan@cha-cha.cs.wustl.edu> * ace/ReactorEx: Complete rewrite. Details to follow. diff --git a/ace/Log_Msg.cpp b/ace/Log_Msg.cpp index a2cfcc806aa..38b9b76d950 100644 --- a/ace/Log_Msg.cpp +++ b/ace/Log_Msg.cpp @@ -59,7 +59,7 @@ extern "C" void ACE_TSS_cleanup (void *ptr) { - delete ptr; + delete (ACE_Log_Msg *) ptr; } #endif /* ACE_MT_SAFE */ @@ -295,6 +295,10 @@ ACE_Log_Msg::ACE_Log_Msg (void) // ACE_TRACE ("ACE_Log_Msg::ACE_Log_Msg"); } +ACE_Log_Msg::~ACE_Log_Msg (void) +{ +} + // Open the sender-side of the Message ACE_Queue. int diff --git a/ace/Log_Msg.h b/ace/Log_Msg.h index 03ac2050b58..3dc046aed3e 100644 --- a/ace/Log_Msg.h +++ b/ace/Log_Msg.h @@ -122,6 +122,8 @@ public: ACE_Log_Msg (void); // Initialize logger. + ~ACE_Log_Msg (void); + int open (const char *prog_name, u_long options_flags = ACE_Log_Msg::STDERR, LPCTSTR logger_key = 0); |