diff --git a/COptions.h b/COptions.h index bade915..26167a1 100644 --- a/COptions.h +++ b/COptions.h @@ -305,7 +305,7 @@ class COptions } else if (result > MAX_PATH) { - delete normalizedPath; + delete [] normalizedPath; length = result; } else diff --git a/Console.h b/Console.h index 3639fbe..27e5cee 100644 --- a/Console.h +++ b/Console.h @@ -89,7 +89,7 @@ class Console DWORD charsWritten; BOOL bWorked = ::WriteFile(get_StandardOutput(), narrowMessage, messageString.GetLength(), &charsWritten, NULL); - Utilities::Free(narrowMessage); + delete [] narrowMessage; if (!bWorked) {