From: Andy D. <kha...@us...> - 2005-01-10 11:51:35
|
Update of /cvsroot/planeshift/planeshift/src/server In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31602/server Modified Files: advicemanager.cpp Log Message: Fixed psAdviceSessionTimeoutGameEvent corrupting memory because it wasn't being cancelled when the AdviceSession ended. Index: advicemanager.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/server/advicemanager.cpp,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** advicemanager.cpp 8 Jan 2005 01:16:04 -0000 1.24 --- advicemanager.cpp 10 Jan 2005 11:51:24 -0000 1.25 *************** *** 106,109 **** --- 106,112 ---- if ( advisor && advisor->clientptr ) advisor->clientptr->GetActor()->Unregister( this ); if ( advisee && advisee->clientptr ) advisee->clientptr->GetActor()->Unregister( this ); + // Cancel any timeouts tied to this session + if ( timeoutEvent ) + timeoutEvent->valid = false; }; |