Update of /cvsroot/wpdev/wolfpack
In directory sc8-pr-cvs1:/tmp/cvs-serv26807
Modified Files:
maps.cpp
Log Message:
Fixed memory leak accessing statics?.mul
Index: maps.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/maps.cpp,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** maps.cpp 29 Aug 2003 17:58:57 -0000 1.23
--- maps.cpp 14 Jan 2004 02:43:11 -0000 1.24
***************
*** 82,85 ****
--- 82,87 ----
if ( !staticsfile.open( IO_ReadOnly ) )
throw wpFileNotFoundException( QString("Couldn't open file %1").arg( statics ) );
+ staticsCache.setAutoDelete( true );
+ mapCache.setAutoDelete( true );
}
|