diff options
author | Underground78 <underground78@users.sourceforge.net> | 2012-11-10 19:14:36 +0400 |
---|---|---|
committer | Underground78 <underground78@users.sourceforge.net> | 2012-11-12 02:24:55 +0400 |
commit | 19f3afdfa6586b556af5886f8eaf1f1390f06612 (patch) | |
tree | b8fcc77c0e57fb52e0d6b8f03c258992e29836d9 /src/filters/source/ShoutcastSource | |
parent | 5f99d807904e3adaa533b954df8bc37e28c7a4fe (diff) |
Properly enable memory leak detection.
Use MS define DEBUG_NEW.
Diffstat (limited to 'src/filters/source/ShoutcastSource')
-rw-r--r-- | src/filters/source/ShoutcastSource/ShoutcastSource.cpp | 2 | ||||
-rw-r--r-- | src/filters/source/ShoutcastSource/ShoutcastSource.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/filters/source/ShoutcastSource/ShoutcastSource.cpp b/src/filters/source/ShoutcastSource/ShoutcastSource.cpp index de54ae8bc..2adbe152b 100644 --- a/src/filters/source/ShoutcastSource/ShoutcastSource.cpp +++ b/src/filters/source/ShoutcastSource/ShoutcastSource.cpp @@ -174,7 +174,7 @@ STDMETHODIMP CShoutcastSource::Load(LPCOLESTR pszFileName, const AM_MEDIA_TYPE* HRESULT hr = E_OUTOFMEMORY;
- if (!(DNew CShoutcastStream(pszFileName, this, &hr)) || FAILED(hr)) {
+ if (!(DEBUG_NEW CShoutcastStream(pszFileName, this, &hr)) || FAILED(hr)) {
return hr;
}
diff --git a/src/filters/source/ShoutcastSource/ShoutcastSource.h b/src/filters/source/ShoutcastSource/ShoutcastSource.h index 7044ba396..d39ccc9a6 100644 --- a/src/filters/source/ShoutcastSource/ShoutcastSource.h +++ b/src/filters/source/ShoutcastSource/ShoutcastSource.h @@ -95,7 +95,7 @@ class CShoutcastStream : public CSourceStream CString title;
mp3frame(DWORD len = 0) {
this->len = len;
- pData = len ? DNew BYTE[len] : NULL;
+ pData = len ? DEBUG_NEW BYTE[len] : NULL;
rtStart = rtStop = 0;
}
mp3frame(const mp3frame& f) { *this = f; }
|