From: <bal...@us...> - 2004-01-05 15:59:12
|
Update of /cvsroot/gemrb/gemrb/gemrb/plugins/Core In directory sc8-pr-cvs1:/tmp/cvs-serv13121/gemrb/plugins/Core Modified Files: Game.cpp Log Message: Game.cpp : - Fixed a Memory Leak: Never freeing PC Actors Index: Game.cpp =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/plugins/Core/Game.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Game.cpp 4 Jan 2004 00:26:22 -0000 1.6 --- Game.cpp 5 Jan 2004 15:59:08 -0000 1.7 *************** *** 34,42 **** Game::~Game(void) { - /*for(size_t i = 0; i < PCs.size(); i++) { - delete(PCs[i].actor); - }*/ for(size_t i = 0; i < Maps.size(); i++) { delete(Maps[i]); } } --- 34,42 ---- Game::~Game(void) { for(size_t i = 0; i < Maps.size(); i++) { delete(Maps[i]); + } + for(size_t i = 0; i < PCs.size(); i++) { + delete(PCs[i]); } } |