Skip to content

Commit 942b92a

Browse files
committed
cygwin: fix new[]/delete mismatch
1 parent aff91f7 commit 942b92a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/platform_cygwin.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ void Platform::SetProcessTitle(char *title) {
9494
length = MultiByteToWideChar(CP_UTF8, 0, title, -1, title_w, length);
9595
if (!length) {
9696
_winapi_perror("MultiByteToWideChar");
97-
delete title_w;
97+
delete[] title_w;
9898
return;
9999
};
100100

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

113-
delete title_w;
113+
delete[] title_w;
114114
}
115115

116116

0 commit comments

Comments
 (0)