win: fix mismatched new[]/delete
This commit is contained in:
parent
ed5bad754c
commit
0de6ec5f08
@ -125,7 +125,7 @@ void Platform::SetProcessTitle(char *title) {
|
|||||||
length = MultiByteToWideChar(CP_UTF8, 0, title, -1, title_w, length);
|
length = MultiByteToWideChar(CP_UTF8, 0, title, -1, title_w, length);
|
||||||
if (!length) {
|
if (!length) {
|
||||||
winapi_perror("MultiByteToWideChar");
|
winapi_perror("MultiByteToWideChar");
|
||||||
delete title_w;
|
delete[] title_w;
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -141,7 +141,7 @@ void Platform::SetProcessTitle(char *title) {
|
|||||||
free(process_title);
|
free(process_title);
|
||||||
process_title = strdup(title);
|
process_title = strdup(title);
|
||||||
|
|
||||||
delete title_w;
|
delete[] title_w;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user