diff options
author | Adam <adam@sigterm.info> | 2012-10-12 14:50:05 -0700 |
---|---|---|
committer | Adam <adam@sigterm.info> | 2012-10-12 14:50:05 -0700 |
commit | c05ad37bfd03486475889485606ed5cffc7bf5a2 (patch) | |
tree | fe01825889769500a0f080371a0714aa15505b9a /win/inspircd_memory_functions.cpp | |
parent | e496d321efe3e9b27f2f116bd22a05ec44aec564 (diff) | |
parent | 5b9682275e384635a1fd9f7320cf4d9a604a43b4 (diff) |
Merge pull request #320 from ChrisTX/insp20+cleanupwin
Windows: In-depth cleanup (see details)
Diffstat (limited to 'win/inspircd_memory_functions.cpp')
-rw-r--r-- | win/inspircd_memory_functions.cpp | 4 |
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 |