From 52a80f17423afc0049117c812cacab159f544639 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 22 Aug 2016 05:47:19 +0100 Subject: workaround potencial memory leak --- ThirdParty/SmartThreadPool/SmartThreadPool.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ThirdParty') diff --git a/ThirdParty/SmartThreadPool/SmartThreadPool.cs b/ThirdParty/SmartThreadPool/SmartThreadPool.cs index 8e42732..297e20e 100644 --- a/ThirdParty/SmartThreadPool/SmartThreadPool.cs +++ b/ThirdParty/SmartThreadPool/SmartThreadPool.cs @@ -1485,6 +1485,9 @@ namespace Amib.Threading _isIdleWaitHandle = null; } + if (_stpStartInfo.EnableLocalPerformanceCounters) + _localPCs.Dispose(); + _isDisposed = true; } } -- cgit v1.1