diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-21 11:11:20 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-21 11:11:20 +0000 |
commit | aa8f4373e0c9614b7d64a5760c0fa071b1c1edc9 (patch) | |
tree | 218b31bc3166dfc36adf55800b7e7cdea17a8c68 /plugins/CryptoPP | |
parent | c80bc292b555c6666930790c399f6fac6226c468 (diff) |
- MZeroedObject used instead of the operator new() inlining
- SAFE_DELETE of local objects removed from ICQ
git-svn-id: http://svn.miranda-ng.org/main/trunk@1092 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CryptoPP')
-rw-r--r-- | plugins/CryptoPP/src/mmi.cpp | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/plugins/CryptoPP/src/mmi.cpp b/plugins/CryptoPP/src/mmi.cpp index 68026578bb..b7c047a9e5 100644 --- a/plugins/CryptoPP/src/mmi.cpp +++ b/plugins/CryptoPP/src/mmi.cpp @@ -1,72 +1,5 @@ #include "commonheaders.h"
-/*
-void m_check(void *ptr, const char *module) {
- if (ptr==NULL) {
- char buffer[128];
- strcpy(buffer,module); strcat(buffer,": NULL pointer detected !");
- MessageBoxA(0,buffer,szModuleName,MB_OK|MB_ICONSTOP);
- __asm{ int 3 };
- exit(1);
- }
-}
-
-
-void *m_alloc(size_t size) {
- void *ptr;
- ptr = malloc(size);
- m_check(ptr,"m_alloc");
- ZeroMemory(ptr,size);
- return ptr;
-}
-
-
-void m_free(void *ptr) {
-// m_check(ptr,"m_free");
- if (ptr) {
- free(ptr);
- }
-}
-
-
-void *m_realloc(void *ptr,size_t size) {
- r = realloc(ptr,size);
- m_check(ptr,"m_realloc");
- return ptr;
-}
-
-
-#ifndef _DEBUG
-void *operator new(size_t size) {
- return malloc(size);
-}
-#endif
-
-
-void operator delete(void *p) {
- free(p);
-}
-
-
-void *operator new[](size_t size) {
- return operator new(size);
-}
-
-
-void operator delete[](void *p) {
- operator delete(p);
-}
-
-
-char *m_strdup(const char *str) {
- if (str==NULL) return NULL;
- int len = (int)strlen(str)+1;
- char *dup = (char*) m_alloc(len);
- MoveMemory((void*)dup,(void*)str,len);
- return dup;
-}
-*/
-
void __fastcall safe_free(void** p)
{
if (*p) {
|