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
119119 }
120120
121121 CWelsLib::~CWelsLib() {
122+#ifndef NO_DYNAMIC_VP
122123 if (m_pVpLib) {
123124 #if defined(WIN32)
124125 HMODULE shModule = (HMODULE)m_pVpLib;
@@ -134,6 +135,7 @@ CWelsLib::~CWelsLib() { · 9 unmodified lines
134135 #endif
135136 m_pVpLib = NULL;
136137 }
138+#endif
137139 }
138140
139141 void* 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