summaryrefslogtreecommitdiff
path: root/plugins/CryptoPP/src/cpp_rsam.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-18 09:35:26 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-18 09:35:26 +0000
commit5b365d71c4ae382d93c5ee90c66604e41ab4b1fb (patch)
tree78124acedd7633b9a7a8fe39d39c93ff3647ac94 /plugins/CryptoPP/src/cpp_rsam.cpp
parent3f88620733ada264505ffa7b527145481af7d2ef (diff)
- strange endless thread removed from CryptoPP;
- cleanup procedure established; - version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@4087 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CryptoPP/src/cpp_rsam.cpp')
-rw-r--r--plugins/CryptoPP/src/cpp_rsam.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/CryptoPP/src/cpp_rsam.cpp b/plugins/CryptoPP/src/cpp_rsam.cpp
index 3cdb391660..0fd1e9de7f 100644
--- a/plugins/CryptoPP/src/cpp_rsam.cpp
+++ b/plugins/CryptoPP/src/cpp_rsam.cpp
@@ -68,6 +68,14 @@ int __cdecl rsa_done(void) {
#if defined(_DEBUG) || defined(NETLIB_LOG)
Sent_NetLog("rsa_done");
#endif
+ if ( hRSA4096 ) {
+ pCNTX tmp = (pCNTX) hRSA4096;
+ pRSAPRIV p = (pRSAPRIV)tmp->pdata;
+ delete p;
+ tmp->pdata = 0;
+ cpp_delete_context(hRSA4096);
+ }
+
return 1;
}
@@ -858,7 +866,6 @@ void rsa_free( pCNTX ptr ) {
if ( p && p->event ) {
p->thread_exit = 2; // отпускаем поток в свободное плавание
SetEvent( p->event );
- rsa_alloc(ptr);
}
}