cygwin: fix new[]/delete mismatch

pull/22966/head
Ben Noordhuis 2011-09-25 03:32:45 +02:00
parent 6ee676c0e4
commit d91f64fcbb
1 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ void Platform::SetProcessTitle(char *title) {
length = MultiByteToWideChar(CP_UTF8, 0, title, -1, title_w, length); length = MultiByteToWideChar(CP_UTF8, 0, title, -1, title_w, length);
if (!length) { if (!length) {
_winapi_perror("MultiByteToWideChar"); _winapi_perror("MultiByteToWideChar");
delete title_w; delete[] title_w;
return; return;
}; };
@ -110,7 +110,7 @@ void Platform::SetProcessTitle(char *title) {
free(process_title); free(process_title);
process_title = strdup(title); process_title = strdup(title);
delete title_w; delete[] title_w;
} }