diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:31:23 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:31:23 +0200 |
commit | 851b6f99c1248c8ec8e33322a3179c1d82fdd515 (patch) | |
tree | 5b9abf4c4e648ea48ed4873e3c4bf1b225c64daf /zen/debug_memory_leaks.cpp | |
parent | 6.1 (diff) | |
download | FreeFileSync-851b6f99c1248c8ec8e33322a3179c1d82fdd515.tar.gz FreeFileSync-851b6f99c1248c8ec8e33322a3179c1d82fdd515.tar.bz2 FreeFileSync-851b6f99c1248c8ec8e33322a3179c1d82fdd515.zip |
6.2
Diffstat (limited to 'zen/debug_memory_leaks.cpp')
-rw-r--r-- | zen/debug_memory_leaks.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/zen/debug_memory_leaks.cpp b/zen/debug_memory_leaks.cpp deleted file mode 100644 index 2359b6ef..00000000 --- a/zen/debug_memory_leaks.cpp +++ /dev/null @@ -1,30 +0,0 @@ -// ************************************************************************** -// * This file is part of the FreeFileSync project. It is distributed under * -// * GNU General Public License: http://www.gnu.org/licenses/gpl.html * -// * Copyright (C) Zenju (zenju AT gmx DOT de) - All Rights Reserved * -// ************************************************************************** - -//-----------Memory Leak Detection-------------------------- -//Usage: just include this file into a Visual Studio project - - -#ifdef _DEBUG //When _DEBUG is not defined, calls to _CrtSetDbgFlag are removed during preprocessing. -#define _CRTDBG_MAP_ALLOC // -#include <stdlib.h> //keep this order: "The #include statements must be in the order shown here. If you change the order, the functions you use may not work properly." -#include <crtdbg.h> //overwrites "operator new" ect; no need to include this in every compilation unit! -//http://msdn.microsoft.com/en-us/library/e5ewb1h3(v=vs.80).aspx - -namespace -{ -struct OnStartup -{ - OnStartup() - { - //note: wxWidgets also activates leak detection in "src/common/init.cpp" using a macro that is equivalent to: - int flags = _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG); - _CrtSetDbgFlag(flags | _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); - } - -} dummy; -} -#endif //_DEBUG
\ No newline at end of file |