shithub: openh264

Download patch

ref: 863e7a58aea5dafa08809ceae61de59479ecef02
parent: dcf08c6d413b0c9b56fef0b8602049c6a58b184b
parent: 309d0bbffb3d8d7b265bc3913e0ddcdda4d297cf
author: Andreas Gal <[email protected]>
date: Fri Dec 13 02:34:55 EST 2013

Merge pull request #37 from mstorsjo/no-dynamic-close

Add a missing NO_DYNAMIC_VP ifdef in the CWelsLib destructor

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