From: Steve Brokenshire Date: Mon, 16 May 2016 20:34:18 +0000 (+0100) Subject: Win32 Support: When reloading the account list, free the PCCERT_CONTEXT data. X-Git-Tag: release-0.13~19 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=640ed117f33a19e6d77d49e9ea74e6f0d2e45e29;p=xestiaab%2F.git Win32 Support: When reloading the account list, free the PCCERT_CONTEXT data. --- 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();