diff scn2k/scn2k_impl.cc @ 8:55b577e5f5b5

Some memory leaks fixed
author thib
date Tue, 05 Aug 2008 12:56:51 +0000
parents 2c890434e30f
children 2e6a92ed913b
line wrap: on
line diff
--- a/scn2k/scn2k_impl.cc
+++ b/scn2k/scn2k_impl.cc
@@ -865,6 +865,7 @@ string Scn2k::MakeSaveFile(void) const {
 	fname[i] = 0;
 	dir += "/save.";
 	dir += fname;
+	delete[] fname;
 	return dir;
 }
 // セーブファイルの名前をつくる