Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
cygwin: fix new[]/delete mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Sep 25, 2011
1 parent 6ee676c commit d91f64f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform_cygwin.cc
Expand Up @@ -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;
};

Expand All @@ -110,7 +110,7 @@ void Platform::SetProcessTitle(char *title) {
free(process_title);
process_title = strdup(title);

delete title_w;
delete[] title_w;
}


Expand Down

0 comments on commit d91f64f

Please sign in to comment.