Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Win32 Support: When reloading the account list, free the PCCERT_CONTEXT data.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Mon, 16 May 2016 20:34:18 +0000 (21:34 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Mon, 16 May 2016 20:34:18 +0000 (21:34 +0100)
source/frmMain.cpp

index fad8469..aff4528 100644 (file)
@@ -1399,6 +1399,19 @@ void frmMain::LoadPreferences(){
                AccTmrPtr = NULL;
         
        }
+
+#if defined(__WIN32__)
+
+       for (std::map<int, PCCERT_CONTEXT>::iterator CertificateIter = AccountCertificateData.begin();
+               CertificateIter != AccountCertificateData.end(); CertificateIter++){
+
+               CertFreeCertificateContext(CertificateIter->second);
+
+       }
+
+       AccountCertificateData.clear();
+
+#endif
     
        AccountSyncTimers.clear();
         
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy