From 4ccc56ee5f781fef7ef896173d8e220794977527 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 15 Mar 2020 19:53:13 +0300 Subject: NewGPG: cosmetic fixes --- plugins/New_GPG/src/ui.cpp | 1 - plugins/New_GPG/src/utilities.cpp | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins/New_GPG') diff --git a/plugins/New_GPG/src/ui.cpp b/plugins/New_GPG/src/ui.cpp index 1be6744636..c3147444ba 100755 --- a/plugins/New_GPG/src/ui.cpp +++ b/plugins/New_GPG/src/ui.cpp @@ -710,7 +710,6 @@ void CDlgFirstRun::refresh_key_list() accs += L","; accs += pa->tszAccountName; } - mir_free(str); } list_KEY_LIST.SetItemText(row, 6, accs.c_str()); } diff --git a/plugins/New_GPG/src/utilities.cpp b/plugins/New_GPG/src/utilities.cpp index fcb74bc96d..ea0c57540b 100755 --- a/plugins/New_GPG/src/utilities.cpp +++ b/plugins/New_GPG/src/utilities.cpp @@ -904,9 +904,9 @@ bool isGPGKeyExist() bool isGPGValid() { - ptrW tmp; + ptrW tmp(g_plugin.getWStringA("szGpgBinPath", L"")); bool gpg_exists = false, is_valid = true; - boost::filesystem::path p(g_plugin.getMStringW("szGpgBinPath").c_str()); + boost::filesystem::path p(tmp); if (boost::filesystem::exists(p) && boost::filesystem::is_regular_file(p)) gpg_exists = true; -- cgit v1.2.3