diff options
Diffstat (limited to 'protocols/IcqOscarJ/src/icq_server.cpp')
-rw-r--r-- | protocols/IcqOscarJ/src/icq_server.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/protocols/IcqOscarJ/src/icq_server.cpp b/protocols/IcqOscarJ/src/icq_server.cpp index 63a5d63d84..6ddaea9bdb 100644 --- a/protocols/IcqOscarJ/src/icq_server.cpp +++ b/protocols/IcqOscarJ/src/icq_server.cpp @@ -221,9 +221,9 @@ void __cdecl CIcqProto::ServerThread(serverthread_start_info *infoParam) {
icq_lock l(m_ratesMutex);
- SAFE_DELETE((MZeroedObject**)&m_ratesQueue_Request);
- SAFE_DELETE((MZeroedObject**)&m_ratesQueue_Response);
- SAFE_DELETE((MZeroedObject**)&m_rates);
+ delete m_ratesQueue_Request; m_ratesQueue_Request = NULL;
+ delete m_ratesQueue_Response; m_ratesQueue_Response = NULL;
+ delete m_rates; m_rates = NULL;
}
FlushServerIDs(); // clear server IDs list
@@ -394,8 +394,7 @@ int CIcqProto::IsServerOverRate(WORD wFamily, WORD wCommand, int nLevel) {
icq_lock l(m_ratesMutex);
- if (m_rates)
- {
+ if (m_rates) {
WORD wGroup = m_rates->getGroupFromSNAC(wFamily, wCommand);
// check if the rate is not over specified level
|