diff options
author | Einar Johan Trøan Sømåen | 2012-03-12 20:56:26 +0100 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-06-02 12:12:34 +0200 |
commit | f33e2d1824738ebe76d26a89498627ca13814e7f (patch) | |
tree | 46a57c8ed75b8cbf84fb9f297b7dbc48778e916b /engines/wintermute/BNamedObject.cpp | |
parent | 4b2b236abd6b30c977b1a2858cc1b90eaf85cb10 (diff) | |
download | scummvm-rg350-f33e2d1824738ebe76d26a89498627ca13814e7f.tar.gz scummvm-rg350-f33e2d1824738ebe76d26a89498627ca13814e7f.tar.bz2 scummvm-rg350-f33e2d1824738ebe76d26a89498627ca13814e7f.zip |
WINTERMUTE: Silence a few SAFE_DELETE-related warnings.
Diffstat (limited to 'engines/wintermute/BNamedObject.cpp')
-rw-r--r-- | engines/wintermute/BNamedObject.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/wintermute/BNamedObject.cpp b/engines/wintermute/BNamedObject.cpp index 0f2df63aea..161f479b81 100644 --- a/engines/wintermute/BNamedObject.cpp +++ b/engines/wintermute/BNamedObject.cpp @@ -49,13 +49,14 @@ CBNamedObject::CBNamedObject(TDynamicConstructor, TDynamicConstructor) { //////////////////////////////////////////////////////////////////////////
CBNamedObject::~CBNamedObject(void) {
- SAFE_DELETE_ARRAY(m_Name);
+ delete[] m_Name;
+ m_Name = NULL;
}
//////////////////////////////////////////////////////////////////////
void CBNamedObject::SetName(char *Name) {
- SAFE_DELETE_ARRAY(m_Name);
+ delete[] m_Name;
m_Name = new char [strlen(Name) + 1];
if (m_Name != NULL) strcpy(m_Name, Name);
|