From 640ed117f33a19e6d77d49e9ea74e6f0d2e45e29 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Mon, 16 May 2016 21:34:18 +0100 Subject: [PATCH] Win32 Support: When reloading the account list, free the PCCERT_CONTEXT data. --- source/frmMain.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/source/frmMain.cpp b/source/frmMain.cpp index fad8469..aff4528 100644 --- a/source/frmMain.cpp +++ b/source/frmMain.cpp @@ -1399,6 +1399,19 @@ void frmMain::LoadPreferences(){ AccTmrPtr = NULL; } + +#if defined(__WIN32__) + + for (std::map::iterator CertificateIter = AccountCertificateData.begin(); + CertificateIter != AccountCertificateData.end(); CertificateIter++){ + + CertFreeCertificateContext(CertificateIter->second); + + } + + AccountCertificateData.clear(); + +#endif AccountSyncTimers.clear(); -- 2.39.5