winhttp: Free OpenSSL error strings at unload.

This commit is contained in:
Juan Lang 2009-12-11 08:16:25 -08:00 committed by Alexandre Julliard
parent 01a7cbf843
commit 9352509eb2
1 changed files with 3 additions and 0 deletions

View File

@ -122,6 +122,7 @@ MAKE_FUNCPTR( BIO_new_fp );
MAKE_FUNCPTR( CRYPTO_num_locks );
MAKE_FUNCPTR( CRYPTO_set_id_callback );
MAKE_FUNCPTR( CRYPTO_set_locking_callback );
MAKE_FUNCPTR( ERR_free_strings );
MAKE_FUNCPTR( ERR_get_error );
MAKE_FUNCPTR( ERR_error_string );
MAKE_FUNCPTR( X509_STORE_CTX_get_ex_data );
@ -442,6 +443,7 @@ BOOL netconn_init( netconn_t *conn, BOOL secure )
LOAD_FUNCPTR( CRYPTO_num_locks );
LOAD_FUNCPTR( CRYPTO_set_id_callback );
LOAD_FUNCPTR( CRYPTO_set_locking_callback );
LOAD_FUNCPTR( ERR_free_strings );
LOAD_FUNCPTR( ERR_get_error );
LOAD_FUNCPTR( ERR_error_string );
LOAD_FUNCPTR( X509_STORE_CTX_get_ex_data );
@ -499,6 +501,7 @@ void netconn_unload( void )
#if defined(SONAME_LIBSSL) && defined(SONAME_LIBCRYPTO)
if (libcrypto_handle)
{
pERR_free_strings();
wine_dlclose( libcrypto_handle, NULL, 0 );
}
if (libssl_handle)