projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ee676c
)
cygwin: fix new[]/delete mismatch
author
Ben Noordhuis
<info@bnoordhuis.nl>
Sun, 25 Sep 2011 01:32:45 +0000
(
03:32
+0200)
committer
Ben Noordhuis
<info@bnoordhuis.nl>
Sun, 25 Sep 2011 01:34:19 +0000
(
03:34
+0200)
src/platform_cygwin.cc
patch
|
blob
|
history
diff --git
a/src/platform_cygwin.cc
b/src/platform_cygwin.cc
index
f7b4933
..
359fe92
100644
(file)
--- a/
src/platform_cygwin.cc
+++ b/
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;
}