History

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.

Martin Storsjö committed 12 years ago

Commit 309d0bb1 parent dcf08c61 file · +2 −0Browse files

Showing the changes to codec/encoder/core/src/wels_preprocess.cpp (1 of 1 file). Show all

Unified · Split

codec/encoder/core/src/wels_preprocess.cpp+2−0
@@ -119,6 +119,7 @@ CWelsLib::CWelsLib (void* pEncCtx) { · 118 unmodified lines
119}119}
120 120
121CWelsLib::~CWelsLib() {121CWelsLib::~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#endif135#endif
135 m_pVpLib = NULL;136 m_pVpLib = NULL;
136 }137 }
138#endif
137}139}
138 140
139void* CWelsLib::QueryFunction (const str_t* pName) {141void* CWelsLib::QueryFunction (const str_t* pName) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t