From: Jorrit T. <jo...@us...> - 2004-08-23 12:24:02
|
Update of /cvsroot/planeshift/planeshift/src/common/engine In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv789/src/common/engine Modified Files: celbase.cpp celbase.h Log Message: - Added several leak guards through PS in an attempt to fix leaks in PS too. Index: celbase.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/common/engine/celbase.cpp,v retrieving revision 1.91 retrieving revision 1.92 diff -C2 -d -r1.91 -r1.92 *** celbase.cpp 4 Jul 2004 04:42:06 -0000 1.91 --- celbase.cpp 23 Aug 2004 12:23:45 -0000 1.92 *************** *** 35,38 **** --- 35,40 ---- #define CPrintf printf + CS_LEAKGUARD_IMPLEMENT (CelBase) + CelBase::CelBase() { Index: celbase.h =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/common/engine/celbase.h,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** celbase.h 23 Aug 2004 11:39:50 -0000 1.32 --- celbase.h 23 Aug 2004 12:23:45 -0000 1.33 *************** *** 21,24 **** --- 21,25 ---- #include <csutil/ref.h> + #include <csutil/leakguard.h> // This list of includes means that any source which uses CEL only has to *************** *** 63,66 **** --- 64,69 ---- { public: + CS_LEAKGUARD_DECLARE (CelBase); + CelBase(); virtual ~CelBase(); |