diff options
Diffstat (limited to 'ace/Service_Object.i')
-rw-r--r-- | ace/Service_Object.i | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ace/Service_Object.i b/ace/Service_Object.i index 530757b6363..e85fd0323bb 100644 --- a/ace/Service_Object.i +++ b/ace/Service_Object.i @@ -21,6 +21,8 @@ ACE_INLINE void ACE_Service_Type::name (const char *n) { ACE_TRACE ("ACE_Service_Type::name"); - this->name_ = n; -} + delete [] (char *) this->name_; + ACE_NEW (this->name_, char[::strlen (n) + 1]); + ACE_OS::strcpy ((char *) this->name_, n); +} |