From cdc2824d17f00ddfdb21c5bc43ede1673c70f2ec Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Tue, 23 Feb 2016 19:19:21 +0000 Subject: CryptoPP: memeleaks fix git-svn-id: http://svn.miranda-ng.org/main/trunk@16333 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/CryptoPP/src/base64.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/CryptoPP') 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); } -- cgit v1.2.3