OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
77f1741
)
[Fix] Windows版のマルチバイト/ワイド文字列変換のメモリリーク修正
author
shimitei
<shimitei@gmail.com>
Wed, 9 Jun 2021 13:49:14 +0000
(22:49 +0900)
committer
shimitei
<shimitei@gmail.com>
Wed, 9 Jun 2021 13:49:14 +0000
(22:49 +0900)
src/main-win/main-win-utils.h
patch
|
blob
|
history
diff --git
a/src/main-win/main-win-utils.h
b/src/main-win/main-win-utils.h
index
a2311b3
..
93344d4
100644
(file)
--- a/
src/main-win/main-win-utils.h
+++ b/
src/main-win/main-win-utils.h
@@
-50,7
+50,7
@@
protected:
void kill()
{
- if (
!
buf) {
+ if (buf) {
C_KILL(buf, buf_size, WCHAR);
buf = NULL;
}
@@
-100,7
+100,7
@@
protected:
void kill()
{
- if (
!
buf) {
+ if (buf) {
C_KILL(buf, buf_size, char);
buf = NULL;
}