[Scummvm-cvs-logs] CVS: scummvm/common file.cpp,1.44,1.45

Max Horn fingolfin at users.sourceforge.net
Wed Sep 17 06:29:12 CEST 2003


Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1:/tmp/cvs-serv12954/common

Modified Files:
	file.cpp 
Log Message:
delete name only after closing the file

Index: file.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/file.cpp,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- file.cpp	10 Sep 2003 12:15:51 -0000	1.44
+++ file.cpp	17 Sep 2003 13:28:48 -0000	1.45
@@ -119,8 +119,8 @@
 }
 
 File::~File() {
-	delete [] _name;
 	close();
+	delete [] _name;
 }
 
 bool File::open(const char *filename, const char *directory, int mode, byte encbyte) {





More information about the Scummvm-git-logs mailing list