Changed: Preliminary memory leaks detection under Windows

This commit is contained in:
kervala 2012-12-05 10:26:01 +01:00
parent 8b5fe10339
commit fe0e3058aa
84 changed files with 302 additions and 1 deletions

View file

@ -21,6 +21,10 @@
#include "nel/misc/bsphere.h"
#include "nel/misc/matrix.h"
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {

View file

@ -21,6 +21,9 @@
using namespace std;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -23,6 +23,10 @@
using namespace std;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -22,6 +22,9 @@
using namespace std;
using namespace NLMISC;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {

View file

@ -25,6 +25,9 @@
using namespace std;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {

View file

@ -20,6 +20,9 @@
using namespace std;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -32,6 +32,9 @@ extern "C"
using namespace std;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -27,6 +27,9 @@
using namespace std;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -21,6 +21,9 @@
// remove stupid VC6 warnings
void foo_block_memory_cpp() {}
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -21,6 +21,9 @@
using namespace NLMISC;
using namespace std;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {

View file

@ -26,6 +26,10 @@ using namespace std;
// if 0, don't stat the time of different function
#define STAT_FIFO 1
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {
#ifdef BUFFIFO_TRACK_ALL_BUFFERS

View file

@ -20,6 +20,9 @@
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -24,6 +24,10 @@
#include "nel/misc/cmd_args.h"
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -22,6 +22,10 @@
using namespace std;
using namespace NLMISC;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {
//ICommand::TCategorySet* ICommand::_Categories;

View file

@ -28,7 +28,9 @@
#ifdef NL_OS_WINDOWS
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -21,6 +21,10 @@
#ifdef NL_OS_WINDOWS
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -27,6 +27,10 @@
#include "Mmsystem.h"
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -23,6 +23,10 @@
#ifdef NL_OS_WINDOWS
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -22,6 +22,9 @@
using namespace NLMISC;
using namespace std;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace STRING_MANAGER
{

View file

@ -21,6 +21,10 @@
#ifdef NL_OS_WINDOWS
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -21,6 +21,10 @@
using namespace std;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -31,6 +31,10 @@
using namespace std;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {
//

View file

@ -20,6 +20,10 @@
using namespace std;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {
const uint64 CEntityId::MaxEntityId = ((uint64)1 << (CEntityId::ID_SIZE + 1)) - (uint64)1;

View file

@ -19,6 +19,10 @@
// remove stupid VC6 warnings
void foo_event_emitter_cpp() {}
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {

View file

@ -18,6 +18,10 @@
#include "nel/misc/event_emitter_multi.h"
#include "nel/misc/system_utils.h"
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -20,6 +20,9 @@
#include "nel/misc/event_server.h"
#include "nel/misc/events.h"
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {

View file

@ -21,6 +21,9 @@
#include "nel/misc/event_emitter.h"
#include "nel/misc/events.h"
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {

View file

@ -19,6 +19,9 @@
#include "nel/misc/events.h"
#include "nel/misc/string_conversion.h"
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {

View file

@ -18,6 +18,10 @@
#include "nel/misc/fast_floor.h"
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {
int OptFastFloorCWStack[OptFastFloorCWStackSize];

View file

@ -35,6 +35,10 @@
// Project includes
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {
void dummytoavoidthecompilerwarningfastidmap() { }

View file

@ -19,6 +19,9 @@
#include "nel/misc/fast_mem.h"
#include "nel/misc/system_info.h"
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -17,6 +17,10 @@
#include "stdmisc.h"
#include "nel/misc/game_device.h"
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {

View file

@ -18,6 +18,10 @@
#include "nel/misc/game_device_events.h"
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -24,6 +24,10 @@ void dummyToAvoidStupidCompilerWarning_misc_geom_ext_cpp()
{
}
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -19,6 +19,10 @@
#include "nel/misc/grid_traversal.h"
#include "nel/misc/vector_2f.h"
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -26,6 +26,10 @@
#include "nel/misc/time_nl.h"
#endif
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -22,6 +22,10 @@
using namespace std;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {
CI18N::StrMapContainer CI18N::_StrMap;

View file

@ -28,6 +28,10 @@ using namespace std;
#define NLMISC_READ_BUFFER_SIZE 1024
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -20,6 +20,10 @@
// remove stupid VC6 warnings
void foo_input_device_cpp() {}
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -18,6 +18,9 @@
//#include "nel/3d/u_keyboard_device.h"
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NL3D {

View file

@ -18,6 +18,10 @@
#include "nel/misc/line.h"
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -23,6 +23,9 @@
using namespace std;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -52,6 +52,10 @@ documentation and/or software.
using namespace std;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{
// ****************************************************************************

View file

@ -37,6 +37,10 @@
using namespace std;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {

View file

@ -18,6 +18,10 @@
#include "nel/misc/mem_stream.h"
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -17,6 +17,10 @@
#include "stdmisc.h"
#include "nel/misc/mouse_smoother.h"
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -20,6 +20,9 @@
#include "nel/misc/fast_floor.h"
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -25,6 +25,10 @@
using namespace std;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -23,6 +23,9 @@ void dummyToAvoidStupidCompilerWarning_misc_object_vector_cpp()
{
}
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {

View file

@ -24,6 +24,10 @@
#include <sched.h>
#include <pwd.h>
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {
/* Key for thread specific storage holding IThread pointer. */

View file

@ -19,6 +19,9 @@
#include "nel/misc/plane.h"
#include "nel/misc/uv.h"
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -24,6 +24,9 @@
using namespace std;
using namespace NLMISC;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -24,6 +24,10 @@ void dummyToAvoidStupidCompilerWarning_misc_quad_cpp()
{
}
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {

View file

@ -18,6 +18,9 @@
#include "nel/misc/quat.h"
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -18,6 +18,9 @@
#include "nel/misc/reader_writer.h"
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {

View file

@ -19,6 +19,9 @@
#include "nel/misc/rect.h"
#include "nel/misc/vector_2f.h"
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {

View file

@ -33,6 +33,10 @@
using namespace std;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -21,6 +21,9 @@
#include "nel/misc/system_info.h"
#include "nel/misc/common.h"
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {

View file

@ -31,6 +31,10 @@
using namespace std;
using namespace NLMISC;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
//
// Types
//

View file

@ -29,6 +29,10 @@
using namespace std;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {
CSheetId::CChar CSheetId::_AllStrings;

View file

@ -18,6 +18,9 @@
#include "nel/misc/smart_ptr.h"
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -21,6 +21,9 @@
// remove stupid VC6 warnings
void foo_stl_block_allocator_cpp() {}
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {

View file

@ -21,6 +21,10 @@
// remove stupid VC6 warnings
void foo_stl_block_list_cpp() {}
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {

View file

@ -20,6 +20,10 @@
using namespace std;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {

View file

@ -21,6 +21,9 @@
using namespace std;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -20,6 +20,10 @@
using namespace std;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -24,6 +24,10 @@ void dummyToAvoidStupidCompilerWarning_misc_string_id_array_cpp()
{
}
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {

View file

@ -20,6 +20,10 @@
using namespace std;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -28,6 +28,10 @@
#endif
#endif
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
using namespace std;
// Key in registry

View file

@ -23,6 +23,10 @@ using namespace std;
#define NLMISC_DONE_TASK_SIZE 20
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {
/*

View file

@ -20,6 +20,9 @@
#include "nel/misc/plane.h"
#include "nel/misc/matrix.h"
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -17,6 +17,10 @@
#include "stdmisc.h"
#include "nel/misc/ucstring.h"
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -24,6 +24,10 @@ void dummyToAvoidStupidCompilerWarning_misc_uv_cpp()
{
}
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -21,6 +21,10 @@
using namespace std;
using namespace NLMISC;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {

View file

@ -20,6 +20,9 @@
using namespace std;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -24,6 +24,10 @@ void dummyToAvoidStupidCompilerWarning_misc_vector_2d_cpp()
{
}
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -18,6 +18,9 @@
#include "nel/misc/vector_2f.h"
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -24,6 +24,10 @@ void dummyToAvoidStupidCompilerWarning_misc_vector_h_cpp()
{
}
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {

View file

@ -18,6 +18,9 @@
#include "nel/misc/vectord.h"
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -22,6 +22,10 @@
#include <windows.h>
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{

View file

@ -32,6 +32,9 @@
*/
#include <zmouse.h>
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {

View file

@ -24,6 +24,10 @@
using namespace std;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {
class CUpdateThread : public IRunnable

View file

@ -25,6 +25,10 @@ using namespace std;
const string DefaultColTitle = "name";
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC {
NL_INSTANCE_COUNTER_IMPL(CWordsDictionary);

View file

@ -20,6 +20,9 @@
using namespace std;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
namespace NLMISC
{