From f33e2d1824738ebe76d26a89498627ca13814e7f Mon Sep 17 00:00:00 2001 From: Einar Johan Trøan Sømåen Date: Mon, 12 Mar 2012 20:56:26 +0100 Subject: WINTERMUTE: Silence a few SAFE_DELETE-related warnings. --- engines/wintermute/BNamedObject.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engines/wintermute/BNamedObject.cpp') 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); -- cgit v1.2.3