ref: 309d0bbffb3d8d7b265bc3913e0ddcdda4d297cf
parent: dcf08c6d413b0c9b56fef0b8602049c6a58b184b
author: Martin Storsjö <martin@martin.st>
date: Fri Dec 13 10:42:23 EST 2013
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.
--- a/codec/encoder/core/src/wels_preprocess.cpp
+++ b/codec/encoder/core/src/wels_preprocess.cpp
@@ -119,6 +119,7 @@
}
CWelsLib::~CWelsLib() {
+#ifndef NO_DYNAMIC_VP
if (m_pVpLib) {
#if defined(WIN32)
HMODULE shModule = (HMODULE)m_pVpLib;
@@ -134,6 +135,7 @@
#endif
m_pVpLib = NULL;
}
+#endif
}
void* CWelsLib::QueryFunction (const str_t* pName) {