Author: pschweitzer Date: Sat Apr 5 21:56:15 2014 New Revision: 62635
URL: http://svn.reactos.org/svn/reactos?rev=62635&view=rev Log: [ROSAUTOTEST] Use matching delete operator
CID #1102027 CID #1102028
Modified: trunk/rostests/rosautotest/CWineTest.cpp trunk/rostests/rosautotest/tools.cpp
Modified: trunk/rostests/rosautotest/CWineTest.cpp URL: http://svn.reactos.org/svn/reactos/trunk/rostests/rosautotest/CWineTest.cpp?... ============================================================================== --- trunk/rostests/rosautotest/CWineTest.cpp [iso-8859-1] (original) +++ trunk/rostests/rosautotest/CWineTest.cpp [iso-8859-1] Sat Apr 5 21:56:15 2014 @@ -178,7 +178,7 @@ m_CurrentFile.clear();
/* Also free the memory for the list buffer */ - delete m_ListBuffer; + delete[] m_ListBuffer; m_ListBuffer = NULL;
return false;
Modified: trunk/rostests/rosautotest/tools.cpp URL: http://svn.reactos.org/svn/reactos/trunk/rostests/rosautotest/tools.cpp?rev=... ============================================================================== --- trunk/rostests/rosautotest/tools.cpp [iso-8859-1] (original) +++ trunk/rostests/rosautotest/tools.cpp [iso-8859-1] Sat Apr 5 21:56:15 2014 @@ -196,7 +196,7 @@ WideCharToMultiByte(CP_ACP, 0, Buffer, Length + 1, AsciiBuffer, Length + 1, NULL, NULL);
ReturnedString = AsciiBuffer; - delete AsciiBuffer; + delete[] AsciiBuffer; }
return ReturnedString;