From 942b92a06e8adafc47a3fc0b01a2815797248b76 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sun, 25 Sep 2011 03:32:45 +0200 Subject: [PATCH] cygwin: fix new[]/delete mismatch --- src/platform_cygwin.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform_cygwin.cc b/src/platform_cygwin.cc index 955046e..24f9168 100644 --- a/src/platform_cygwin.cc +++ b/src/platform_cygwin.cc @@ -94,7 +94,7 @@ void Platform::SetProcessTitle(char *title) { length = MultiByteToWideChar(CP_UTF8, 0, title, -1, title_w, length); if (!length) { _winapi_perror("MultiByteToWideChar"); - delete title_w; + delete[] title_w; return; }; @@ -110,7 +110,7 @@ void Platform::SetProcessTitle(char *title) { free(process_title); process_title = strdup(title); - delete title_w; + delete[] title_w; } -- 2.7.4