summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-05-28 16:58:31 +0300
committerAndrei Karas <akaras@inbox.ru>2011-05-28 16:58:31 +0300
commit792c41011b27870504fcc1f9f4f1384918e0b608 (patch)
tree3113582d6da16209832157241cfef0653e016207
parent4ec1478b8f93b4d2557fa55dca875b77894c71b5 (diff)
downloadmv-792c41011b27870504fcc1f9f4f1384918e0b608.tar.gz
mv-792c41011b27870504fcc1f9f4f1384918e0b608.tar.bz2
mv-792c41011b27870504fcc1f9f4f1384918e0b608.tar.xz
mv-792c41011b27870504fcc1f9f4f1384918e0b608.zip
Totally disable memory leak detector if it not enabled.
-rw-r--r--src/debug/debug_new.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/debug/debug_new.cpp b/src/debug/debug_new.cpp
index 3545af60a..98c44264e 100644
--- a/src/debug/debug_new.cpp
+++ b/src/debug/debug_new.cpp
@@ -39,6 +39,7 @@
*
*/
+#ifdef ENABLE_MEM_DEBUG
#include <new>
#include <assert.h>
#include <limits.h>
@@ -850,3 +851,5 @@ __debug_new_counter::~__debug_new_counter()
#endif
}
}
+
+#endif