Add a missing NO_DYNAMIC_VP ifdef in the CWelsLib destructor
Previously this would try to free a dynamically loaded library even if none was loaded.
This commit is contained in:
parent
dcf08c6d41
commit
309d0bbffb
@ -119,6 +119,7 @@ CWelsLib::CWelsLib (void* pEncCtx) {
|
||||
}
|
||||
|
||||
CWelsLib::~CWelsLib() {
|
||||
#ifndef NO_DYNAMIC_VP
|
||||
if (m_pVpLib) {
|
||||
#if defined(WIN32)
|
||||
HMODULE shModule = (HMODULE)m_pVpLib;
|
||||
@ -134,6 +135,7 @@ CWelsLib::~CWelsLib() {
|
||||
#endif
|
||||
m_pVpLib = NULL;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void* CWelsLib::QueryFunction (const str_t* pName) {
|
||||
|
Loading…
Reference in New Issue
Block a user