OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[Fix] Windows版のマルチバイト/ワイド文字列変換のメモリリーク修正
[hengbandforosx/hengbandosx.git]
/
src
/
main-win
/
main-win-utils.h
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;
}