Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnderground78 <underground78@users.sourceforge.net>2012-11-10 19:14:36 +0400
committerUnderground78 <underground78@users.sourceforge.net>2012-11-12 02:24:55 +0400
commit19f3afdfa6586b556af5886f8eaf1f1390f06612 (patch)
treeb8fcc77c0e57fb52e0d6b8f03c258992e29836d9 /src/DSUtil/text.cpp
parent5f99d807904e3adaa533b954df8bc37e28c7a4fe (diff)
Properly enable memory leak detection.
Use MS define DEBUG_NEW.
Diffstat (limited to 'src/DSUtil/text.cpp')
-rw-r--r--src/DSUtil/text.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DSUtil/text.cpp b/src/DSUtil/text.cpp
index 06d8b13f5..c5a2f829c 100644
--- a/src/DSUtil/text.cpp
+++ b/src/DSUtil/text.cpp
@@ -37,10 +37,10 @@ DWORD CharSetToCodePage(DWORD dwCharSet)
CStringA ConvertMBCS(CStringA str, DWORD SrcCharSet, DWORD DstCharSet)
{
- WCHAR* utf16 = DNew WCHAR[str.GetLength() + 1];
+ WCHAR* utf16 = DEBUG_NEW WCHAR[str.GetLength() + 1];
memset(utf16, 0, (str.GetLength() + 1)*sizeof(WCHAR));
- CHAR* mbcs = DNew CHAR[str.GetLength() * 6 + 1];
+ CHAR* mbcs = DEBUG_NEW CHAR[str.GetLength() * 6 + 1];
memset(mbcs, 0, str.GetLength() * 6 + 1);
int len = MultiByteToWideChar(