Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

cygwin: fix new[]/delete mismatch

  • Loading branch information...
bnoordhuis committed Sep 25, 2011
1 parent aff91f7 commit 942b92a06e8adafc47a3fc0b01a2815797248b76
Showing with 2 additions and 2 deletions.
  1. +2 −2 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;
}


0 comments on commit 942b92a

Please sign in to comment.
You can’t perform that action at this time.