summaryrefslogtreecommitdiff
path: root/plugins/New_GPG
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-03-15 19:53:13 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-03-15 19:53:13 +0300
commit4ccc56ee5f781fef7ef896173d8e220794977527 (patch)
tree2c8e9feedf57cf77d1c601dadac7eec05081db7b /plugins/New_GPG
parent265cf5b83f7baca19925ed3b33cd62e6815f29db (diff)
NewGPG: cosmetic fixes
Diffstat (limited to 'plugins/New_GPG')
-rwxr-xr-xplugins/New_GPG/src/ui.cpp1
-rwxr-xr-xplugins/New_GPG/src/utilities.cpp4
2 files changed, 2 insertions, 3 deletions
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;