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

Commit

Permalink
win: fix mismatched new[]/delete
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Dec 26, 2011
1 parent ed5bad7 commit 0de6ec5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform_win32.cc
Expand Up @@ -125,7 +125,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 @@ -141,7 +141,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 0de6ec5

Please sign in to comment.