diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-02-23 19:19:21 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-02-23 19:19:21 +0000 |
commit | cdc2824d17f00ddfdb21c5bc43ede1673c70f2ec (patch) | |
tree | d9cb72f4b6cc59d1f47968de7e2f0fc60277c080 /plugins/CryptoPP/src | |
parent | 16d3d5ca7f9399e7c00f0ae5a24deccf758d0c13 (diff) |
CryptoPP: memeleaks fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@16333 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CryptoPP/src')
-rw-r--r-- | plugins/CryptoPP/src/base64.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CryptoPP/src/base64.cpp b/plugins/CryptoPP/src/base64.cpp index 24ead6eed2..9a855cdb8d 100644 --- a/plugins/CryptoPP/src/base64.cpp +++ b/plugins/CryptoPP/src/base64.cpp @@ -8,13 +8,13 @@ string base64encode(const string& buf) string base64decode(const string& buf)
{
unsigned len;
- char *plain = (char*)mir_base64_decode(buf.data(), &len);
+ ptrA plain((char*)mir_base64_decode(buf.data(), &len));
return (plain == NULL) ? string() : string(plain, len);
}
string base64decode(const char *buf)
{
unsigned len;
- char *plain = (char*)mir_base64_decode(buf, &len);
+ ptrA plain((char*)mir_base64_decode(buf, &len));
return (plain == NULL) ? string() : string(plain, len);
}
|