[ROSAUTOTEST]
authorPierre Schweitzer <pierre@reactos.org>
Sat, 5 Apr 2014 21:56:15 +0000 (21:56 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 5 Apr 2014 21:56:15 +0000 (21:56 +0000)
Use matching delete operator

CID #1102027
CID #1102028

svn path=/trunk/; revision=62635

rostests/rosautotest/CWineTest.cpp
rostests/rosautotest/tools.cpp

index 853204a..119b87d 100644 (file)
@@ -178,7 +178,7 @@ CWineTest::GetNextTest()
         m_CurrentFile.clear();
 
         /* Also free the memory for the list buffer */
         m_CurrentFile.clear();
 
         /* Also free the memory for the list buffer */
-        delete m_ListBuffer;
+        delete[] m_ListBuffer;
         m_ListBuffer = NULL;
 
         return false;
         m_ListBuffer = NULL;
 
         return false;
index 0a58850..413a2b8 100644 (file)
@@ -196,7 +196,7 @@ GetINIValue(PCWCH AppName, PCWCH KeyName, PCWCH FileName)
         WideCharToMultiByte(CP_ACP, 0, Buffer, Length + 1, AsciiBuffer, Length + 1, NULL, NULL);
 
         ReturnedString = AsciiBuffer;
         WideCharToMultiByte(CP_ACP, 0, Buffer, Length + 1, AsciiBuffer, Length + 1, NULL, NULL);
 
         ReturnedString = AsciiBuffer;
-        delete AsciiBuffer;
+        delete[] AsciiBuffer;
     }
 
     return ReturnedString;
     }
 
     return ReturnedString;