[Scummvm-cvs-logs] CVS: scummvm/simon simon.cpp,1.14,1.15

Max Horn fingolfin at users.sourceforge.net
Mon Oct 21 05:59:07 CEST 2002


Update of /cvsroot/scummvm/scummvm/simon
In directory usw-pr-cvs1:/tmp/cvs-serv6514/simon

Modified Files:
	simon.cpp 
Log Message:
fixed a memory leak (one thousand more to go :-)

Index: simon.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/simon.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- simon.cpp	21 Oct 2002 12:34:54 -0000	1.14
+++ simon.cpp	21 Oct 2002 12:58:53 -0000	1.15
@@ -4881,7 +4881,7 @@
 			return;
 		}
 		midi.read_all_songs_old(f);
-		f->close();
+		delete f;
 	}
 
 	midi.initialize();





More information about the Scummvm-git-logs mailing list