summaryrefslogtreecommitdiff
path: root/win/inspircd_memory_functions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'win/inspircd_memory_functions.cpp')
-rw-r--r--win/inspircd_memory_functions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/inspircd_memory_functions.cpp b/win/inspircd_memory_functions.cpp
index e40e09c9c..4d8444f4c 100644
--- a/win/inspircd_memory_functions.cpp
+++ b/win/inspircd_memory_functions.cpp
@@ -34,7 +34,7 @@
void * ::operator new(size_t iSize)
{
- void* ptr = HeapAlloc(GetProcessHeap(), 0, iSize); /* zero memory for unix compatibility */
+ void* ptr = HeapAlloc(GetProcessHeap(), 0, iSize);
/* This is the correct behaviour according to C++ standards for out of memory,
* not returning null -- Brain
*/
@@ -51,7 +51,7 @@ void ::operator delete(void * ptr)
}
void * operator new[] (size_t iSize) {
- void* ptr = HeapAlloc(GetProcessHeap(), 0, iSize); /* Why were we initializing the memory to zeros here? This is just a waste of cpu! */
+ void* ptr = HeapAlloc(GetProcessHeap(), 0, iSize);
if (!ptr)
throw std::bad_alloc();
else