Browse Source

cygwin: fix new[]/delete mismatch

v0.7.4-release
Ben Noordhuis 14 years ago
parent
commit
d91f64fcbb
  1. 4
      src/platform_cygwin.cc

4
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;
}

Loading…
Cancel
Save