Previously this would try to free a dynamically loaded library even if none was loaded.
Showing the changes to codec/encoder/core/src/wels_preprocess.cpp (1 of 1 file). Show all
Unified · Split
| @@ -119,6 +119,7 @@ CWelsLib::CWelsLib (void* pEncCtx) { · 118 unmodified lines | |||
| 119 | } | 119 | } |
| 120 | 120 | ||
| 121 | CWelsLib::~CWelsLib() { | 121 | CWelsLib::~CWelsLib() { |
| 122 | #ifndef NO_DYNAMIC_VP | ||
| 122 | if (m_pVpLib) { | 123 | if (m_pVpLib) { |
| 123 | #if defined(WIN32) | 124 | #if defined(WIN32) |
| 124 | HMODULE shModule = (HMODULE)m_pVpLib; | 125 | HMODULE shModule = (HMODULE)m_pVpLib; |
| @@ -134,6 +135,7 @@ CWelsLib::~CWelsLib() { · 9 unmodified lines | |||
| 134 | #endif | 135 | #endif |
| 135 | m_pVpLib = NULL; | 136 | m_pVpLib = NULL; |
| 136 | } | 137 | } |
| 138 | #endif | ||
| 137 | } | 139 | } |
| 138 | 140 | ||
| 139 | void* CWelsLib::QueryFunction (const str_t* pName) { | 141 | void* CWelsLib::QueryFunction (const str_t* pName) { |