From f6c473a94ff9f749e6eb0d9c8ebf017e3f1a2fb9 Mon Sep 17 00:00:00 2001 From: Alexander Gluzsky Date: Wed, 12 Jun 2013 21:18:00 +0000 Subject: fixed memory allocation git-svn-id: http://svn.miranda-ng.org/main/trunk@4928 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/New_GPG/src/options.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 plugins/New_GPG/src/options.cpp diff --git a/plugins/New_GPG/src/options.cpp b/plugins/New_GPG/src/options.cpp old mode 100644 new mode 100755 index eb65fc8184..2c276d6093 --- 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) -- cgit v1.2.3