diff options
author | George Hazan <george.hazan@gmail.com> | 2014-12-14 14:33:17 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-12-14 14:33:17 +0000 |
commit | 56ecec5734194ccf709c3f57fe1a15a1b926c68d (patch) | |
tree | ce049dc932a37e32a1e8810a70562d2b0a32d9df /protocols/MRA/src/MraSendQueue.cpp | |
parent | ffe922189b20daaf132ddfc24bfea9bf03a3a94b (diff) |
let's operator new() clean the memory
git-svn-id: http://svn.miranda-ng.org/main/trunk@11406 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MRA/src/MraSendQueue.cpp')
-rw-r--r-- | protocols/MRA/src/MraSendQueue.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/protocols/MRA/src/MraSendQueue.cpp b/protocols/MRA/src/MraSendQueue.cpp index 80b9f20b1a..bb6467dfaa 100644 --- a/protocols/MRA/src/MraSendQueue.cpp +++ b/protocols/MRA/src/MraSendQueue.cpp @@ -28,13 +28,9 @@ DWORD MraSendQueueInitialize(DWORD dwSendTimeOutInterval, HANDLE *phSendQueueHan return ERROR_INVALID_HANDLE;
MRA_SEND_QUEUE *pmrasqSendQueue = new MRA_SEND_QUEUE();
-
- DWORD dwRetErrorCode = ListMTInitialize(pmrasqSendQueue);
- if (dwRetErrorCode == NO_ERROR) {
- pmrasqSendQueue->dwSendTimeOutInterval = dwSendTimeOutInterval;
- *phSendQueueHandle = (HANDLE)pmrasqSendQueue;
- }
- return dwRetErrorCode;
+ pmrasqSendQueue->dwSendTimeOutInterval = dwSendTimeOutInterval;
+ *phSendQueueHandle = (HANDLE)pmrasqSendQueue;
+ return NO_ERROR;
}
void MraSendQueueDestroy(HANDLE hSendQueueHandle)
@@ -52,7 +48,6 @@ void MraSendQueueDestroy(HANDLE hSendQueueHandle) }
}
- ListMTDestroy(pmrasqSendQueue);
delete pmrasqSendQueue;
}
|