shithub: openh264

Download patch

ref: 628b08182aec5613ab1a8b362766023496cd5763
parent: dd44eea215f18d5f0cda1f6922cee77b540aeb72
author: Tom Anderson <[email protected]>
date: Fri Oct 12 07:05:32 EDT 2018

Remove exit-time destructor

--- a/codec/common/src/WelsThreadPool.cpp
+++ b/codec/common/src/WelsThreadPool.cpp
@@ -46,8 +46,8 @@
 namespace {
 
 CWelsLock& GetInitLock() {
-  static CWelsLock initLock;
-  return initLock;
+  static CWelsLock *initLock = new CWelsLock;
+  return *initLock;
 }
 
 }