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:
Martin Storsjö 2013-12-13 15:42:23 +02:00
parent dcf08c6d41
commit 309d0bbffb

View File

@ -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) {