summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAlexander Gluzsky <sss123next@list.ru>2013-06-12 21:18:00 +0000
committerAlexander Gluzsky <sss123next@list.ru>2013-06-12 21:18:00 +0000
commitf6c473a94ff9f749e6eb0d9c8ebf017e3f1a2fb9 (patch)
tree73e7697446e229958ecc94e0707bfb9fb91c7ba0 /plugins
parent288fb0da5d7a27929079b6cb2ec5c81a3444842c (diff)
fixed memory allocation
git-svn-id: http://svn.miranda-ng.org/main/trunk@4928 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rwxr-xr-x[-rw-r--r--]plugins/New_GPG/src/options.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/New_GPG/src/options.cpp b/plugins/New_GPG/src/options.cpp
index eb65fc8184..2c276d6093 100644..100755
--- a/plugins/New_GPG/src/options.cpp
+++ b/plugins/New_GPG/src/options.cpp
@@ -1121,7 +1121,7 @@ static INT_PTR CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam
mir_free(tmp2);
s+=3;
s2 = output.find(">", s);
- tmp2 = new char [output.substr(s,s2-s).length()+1];
+ tmp2 = (char*)mir_alloc((output.substr(s,s2-s).length()+1) * sizeof(char));
strcpy(tmp2, output.substr(s,s2-s).c_str());
mir_utf8decode(tmp2, 0);
if(hContact)