Showing the changes to codec/common/src/WelsThreadPool.cpp (1 of 1 file). Show all
Unified · Split
| @@ -46,8 +46,8 @@ namespace WelsCommon { · 45 unmodified lines | ||
| 46 | 46 | namespace { |
| 47 | 47 | |
| 48 | 48 | CWelsLock& GetInitLock() { |
| 49 | − static CWelsLock initLock; | |
| 50 | − return initLock; | |
| 49 | + static CWelsLock *initLock = new CWelsLock; | |
| 50 | + return *initLock; | |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | } |