From: Andy D. <kha...@us...> - 2005-01-10 16:56:24
|
Update of /cvsroot/planeshift/planeshift/src/server In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30969/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.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** advicemanager.cpp 10 Jan 2005 16:16:53 -0000 1.29 --- advicemanager.cpp 10 Jan 2005 16:56:15 -0000 1.30 *************** *** 64,68 **** int requestRetries; ! AdviceSession() :timeoutEvent(NULL) { advisorPoints = 0; --- 64,68 ---- int requestRetries; ! AdviceSession() :timeoutEvent(NULL), requestEvent(NULL) { advisorPoints = 0; *************** *** 109,112 **** --- 109,114 ---- if ( timeoutEvent ) timeoutEvent->valid = false; + if ( requestEvent ) + requestEvent->valid = false; }; |