OSDN Git Service

[Fix] Windows版のマルチバイト/ワイド文字列変換のメモリリーク修正
[hengbandforosx/hengbandosx.git] / src / main-win / main-win-utils.h
index a2311b3..93344d4 100644 (file)
@@ -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;
         }