diff options
author | George Hazan <george.hazan@gmail.com> | 2013-06-12 19:05:01 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-06-12 19:05:01 +0000 |
commit | fe2c3dda8f60afa17a18f3f687b9d5eb04ed5d07 (patch) | |
tree | a01d9f2e147a713e8994c1cfcb4d3dccc7b3337c /protocols/Skype/src/skype_database.cpp | |
parent | 9c63954b6766e378a841e7f32190a3278dc43e60 (diff) |
Skype memory leaks fixed
git-svn-id: http://svn.miranda-ng.org/main/trunk@4926 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_database.cpp')
-rw-r--r-- | protocols/Skype/src/skype_database.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Skype/src/skype_database.cpp b/protocols/Skype/src/skype_database.cpp index 2aca8bd1f3..2ee7a22eca 100644 --- a/protocols/Skype/src/skype_database.cpp +++ b/protocols/Skype/src/skype_database.cpp @@ -92,7 +92,7 @@ void CSkypeProto::RaiseMessageSentEvent(HANDLE hContact, DWORD timestamp, SEBina int guidLen = (int)guid.size();
int msgLen = (int)::strlen(message) + 1;
- char *msg = (char *)::mir_alloc(msgLen + guidLen);
+ ptrA msg((char *)::mir_alloc(msgLen + guidLen));
::strcpy(msg, message);
msg[msgLen - 1] = 0;
@@ -108,5 +108,5 @@ void CSkypeProto::RaiseMessageSentEvent(HANDLE hContact, DWORD timestamp, SEBina timestamp,
flags,
msgLen + guidLen,
- (PBYTE)msg);
+ (PBYTE)(char*)msg);
}
|