summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2011-12-26 03:27:28 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2011-12-26 03:27:28 +0100
commit0de6ec5f08161d481c9cca73ab49cb9fba1b7699 (patch)
tree8e64dced5a60d6f29dc3be05e6ee1a7d96365ac5 /src
parented5bad754c1ff5a4544ef8ac6f2eed0261a9aec7 (diff)
downloadnode-new-0de6ec5f08161d481c9cca73ab49cb9fba1b7699.tar.gz
win: fix mismatched new[]/delete
Diffstat (limited to 'src')
-rw-r--r--src/platform_win32.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platform_win32.cc b/src/platform_win32.cc
index 197b1ac31a..65add1124a 100644
--- a/src/platform_win32.cc
+++ b/src/platform_win32.cc
@@ -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;
};
@@ -141,7 +141,7 @@ void Platform::SetProcessTitle(char *title) {
free(process_title);
process_title = strdup(title);
- delete title_w;
+ delete[] title_w;
}