[Box Backup-commit] COMMIT r2776 - box/invisnet/vs2010/0.11/lib/common

subversion at boxbackup.org subversion at boxbackup.org
Sun Oct 3 17:57:24 BST 2010


Author: invisnet
Date: 2010-10-03 17:57:23 +0100 (Sun, 03 Oct 2010)
New Revision: 2776

Modified:
   box/invisnet/vs2010/0.11/lib/common/DebugMemLeakFinder.cpp
Log:
Add delete operators, uncomment new under MSC

Modified: box/invisnet/vs2010/0.11/lib/common/DebugMemLeakFinder.cpp
===================================================================
--- box/invisnet/vs2010/0.11/lib/common/DebugMemLeakFinder.cpp	2010-10-03 16:56:18 UTC (rev 2775)
+++ box/invisnet/vs2010/0.11/lib/common/DebugMemLeakFinder.cpp	2010-10-03 16:57:23 UTC (rev 2776)
@@ -518,12 +518,12 @@
 // http://www.relisoft.com/book/tech/9new.html
 // disabled because it causes hangs on FC2 in futex() in test/common
 // while reading files. reason unknown.
-/*
+#ifdef _MSC_VER
 void *operator new(size_t size)
 {
 	return internal_new(size, "standard libraries", 0);
 }
-*/
+#endif
 
 void *operator new[](size_t size)
 {
@@ -549,4 +549,14 @@
 	internal_delete(ptr);
 }
 
+void operator delete  (void *pMem, const char *file, int line) throw()
+{
+	internal_delete(pMem);
+}
+
+void operator delete[](void *pMem, const char *file, int line) throw()
+{
+	internal_delete(pMem);
+}
+
 #endif // BOX_RELEASE_BUILD




More information about the Boxbackup-commit mailing list